Questions tagged [renv]

129 questions
0
votes
0 answers

ERROR: compilation failed for package ‘nnet’

I just updated R version to R 4.3.1. Together with the new R, I downloaded XQuartz-2.8.5.pkg and gfortran-12.2-universal.pkg. In my project, the lockfile of my renv was generated with R 4.2.0. Initialising the project, it tells me: - One or more…
menarest
  • 3
  • 4
0
votes
1 answer

How to solve this warning message: renv took longer than expected to activate the sandbox

After installing certain packages in R I got this message: Warning message: renv took longer than expected (20 seconds) to activate the sandbox. The sandbox can be disabled by setting: RENV_CONFIG_SANDBOX_ENABLED = FALSE within an appropriate…
menarest
  • 3
  • 4
0
votes
1 answer

Why does the project not access renv() when running from a Makefile?

I have different versions of tidyverse installed in a project renv and on my system. When I execute my project using a Makefile, it doesn't use the renv versions for some reason, instead using the system-wide versions. When I execute the code in the…
0
votes
0 answers

Restore renv locally without redownloading packages in Shiny Dockerfile

I'm trying to build a dockerfile for my shinyapp. There are many libraries to install Shinyapp needs. That's why, you need to define all packages in second RUN layer one by one. For example: RUN R -e "install.packages(c('renv', 'shiny', 'tidyverse',…
0
votes
0 answers

Docker cannot build my R package - fails to install R dependencies

Previously functional R projects of mine suddenly cannot be compiled to Docker images. Issue is possibly related to recent updates to the Docker hub R base image https://github.com/rstudio/r-docker Snippet of the Dockerfile to build my R API…
kaffedyr
  • 1
  • 1
0
votes
0 answers

Error on uploading to shinyapps.io. Says missing description file

When i try to deploy from Rstudio publishing button I get the following output RETICULATE_PYTHON_FALLBACK unset (no Python installation found) [2023-07-19 19:35:42.73258] Deployment log started Deploy command: rsconnect::deployApp(appDir =…
0
votes
1 answer

How to adress this error: Error in renv_snapshot_validate_report(valid, prompt, force) : aborting snapshot due to pre-flight validation failure

I am deploying a shiny app that locally runs perfectly. Unfortunately I am encountering this error when deploying using shinyapps.io. How can I fix it? ℹ Capturing R dependencies with renv Error in renv_snapshot_validate_report(valid, prompt, force)…
ybarnatan
  • 39
  • 1
  • 5
0
votes
0 answers

Building amd64 images on Mac - Dockerfile includes R renv()

I have the following Dockerfile to create an image to be used after testing on my Mac on a Ubuntu host. The Dockerfile includes some logic related to R's renv() package to restore denifed packages. The Dockerfile content: # File: Dockerfile FROM…
Jochem
  • 3,295
  • 4
  • 30
  • 55
0
votes
0 answers

Seeming discrepancy between renv::status() and renv::restore()

I'm experimenting with using renv in a project to support reproducibility. I created a lockfile without a problem, and now after cloning on a new machine here is the output from two renv commands: > renv::restore() * The library is already…
Ben B-L
  • 426
  • 3
  • 4
0
votes
0 answers

How to use the R version specified in the lock file to build the Image/environment

I'm using this great renv package to manage my R applications dependencies in the Docker File.As you can see, in the renv.lock file that specifies the packages versions and dependencies, it also mentions the R version. { "R": { "Version":…
Yasin Amini
  • 53
  • 11
0
votes
0 answers

Renv unkown repositories

I installed package from our local artifactory. In the lockfile It is write, unknown source. Anyone knows how can I do to declare our artifactory as a known source? Thanks in advance
DONMEA
  • 21
  • 2
0
votes
0 answers

How to remove 'renv' folder? Cannot access project so cannot use renv::deactivate

I'm trying to remove the 'renv' folder from my project, in order to remove renv from the project. Note: I cannot access the project on the server that I'm on, so trying to do this from file explorer. I have managed to remove the renv.lock…
lilblue
  • 84
  • 7
0
votes
1 answer

Unable to (re-)install R package from source

I'm trying to install an R package (MODifieRDev) from a GitHub repository, but I'm getting some gcc errors which I'm unable to resolve. I'm using renv, and what's strange is that I've installed the exact same package in the same renv environment…
gaspanic
  • 249
  • 1
  • 12
0
votes
0 answers

exposing external libraries to not be cleaned by renv

I have a bunch of scripts that belongs to other project (utils). I call it with the next script: ## external utilities ---- repositorio <- Sys.getenv("repositorio") options(box.path = repositorio) box::use( utils/R/sql, …
Captain Tyler
  • 500
  • 7
  • 19
0
votes
1 answer

How to have a project with `renv` use the user `.Rprofile` as well as the project `.Rprofile`?

I have a lot of tidyverse-recommended settings in my user .Rprofile that I noticed are not being used inside projects with renv because renv creates a project-specific .Rprofile. Is there a way to configure renv to always use the user .Rprofile…
its.me.adam
  • 333
  • 2
  • 11
1 2 3
8 9