Questions tagged [renv]

129 questions
2
votes
1 answer

Using renv: where should renv itself be installed?

I am getting started with collaborating with team members on R projects using renv. While I can (mostly) get it to work, I am a bit confused about whether and where to install renv itself. According to the documented workflow I basically need renv…
gira
  • 175
  • 6
2
votes
0 answers

Installing package from local file - Error in startsWith(contriburl, "file:") : non-character object(s)

I downloaded rJava package rJava_1.0-6.tar.gz and trying to install it locally: install.packages('rJava_1.0-6.tar.gz', repos = NULL, type = "source") I get back the following error: Installing package into…
user1700890
  • 7,144
  • 18
  • 87
  • 183
2
votes
0 answers

Docker & R (renv): RUN package installations not found when running container

My Dockerfile uses renv and I have the following RUN command (whole file here: https://github.com/chpatola/docker-r-tutorial/blob/main/local_file/Dockerfile) RUN Rscript -e "renv::restore(prompt = FALSE)" When it is run as I build the image, I get…
Charlotte P.
  • 21
  • 1
  • 2
2
votes
2 answers

Is it possible for `renv` to be "bypassed" or temporarily turned off?

I have an RStudio project that manages packages using renv, which works great. But sometimes I want to debug or explore something using libraries on my main environment(right word?) that I don't want to add to the project. For example, maybe I want…
sharoz
  • 6,157
  • 7
  • 31
  • 57
2
votes
1 answer

Deploying projects with renv in offline environment

What is the correct procedure to deploy packages using renv to an offline machine? We have an internal CRAN-like repository, which is configured via options(repos = list(cran = "http://our.repo.url")) on both the development machine and the…
laxxy
  • 1,148
  • 8
  • 17
2
votes
2 answers

How can I copy and entire renv based project to a new PC (which does not have internet access)?

I have been given access to a beefy machine on which to run a large simulation. I have developed the code in an RStudio project with renv. Renv makes a local copy of all the packages and stores versions thereof in a lock file. The target machine…
Chechy Levas
  • 2,206
  • 1
  • 13
  • 28
2
votes
1 answer

renv:restore() always fails in windows

Whenever I want to recreate a project on my windows machine using renv:restore() it always fails installing packages. I always get the same error (although the packages may change): Retrieving…
ccamara
  • 1,141
  • 1
  • 12
  • 32
2
votes
1 answer

Installing sf package in R under renv on Macos

I'm having problems in installing the sf package through renv. I have installed R from source in my Mac and everything is fine. I was able to install rgdal and sf through install.packages but can't make it with renv. The problem is that the…
nicola
  • 24,005
  • 3
  • 35
  • 56
2
votes
1 answer

How can I install a package to a directory that includes an apostrophe using makeLazyLoading?

In RStudio, I have set up a new project using renv. I am trying to install the RMarkdown package and its dependencies. However, the pathname for my project includes an apostrophe and spaces which is preventing me from installing certain packages. I…
Tom
  • 279
  • 1
  • 12
2
votes
2 answers

How to manage dependencies with renv explicitly

I would prefer to have a config file and list the packages within it which are needed for the project, rather than relying on renv::init() to scrape the project and find all which I need (it often can't). So my question is - how do I explicitly tell…
baxx
  • 3,956
  • 6
  • 37
  • 75
2
votes
0 answers

How to manage dependencies for an R project manually?

I'm aware of, and have been looking at, renv. The issue is that when using renv with renv::init() it will scrape through the repo for any .R files and add them to the renv.lock, which is a (often large) json file. If I want to add a package manually…
baxx
  • 3,956
  • 6
  • 37
  • 75
2
votes
1 answer

renv 0.12.0 was loaded from project library, but renv 0.11.0 is recorded in lockfile

Upon opening a project on rstudio i have the following Warning: Warning message: renv 0.12.0 was loaded from project library, but renv 0.11.0 is recorded in lockfile. Use `renv::record("renv@0.12.0")` to record this version in the lockfile. Use…
moth
  • 1,833
  • 12
  • 29
2
votes
1 answer

How to import the installed packages for `renv` by default

I want to test the potential function of the collective maintenance of the R scripts across individuals. I try to work on Rstudio project together with the Could software eg. Dropbox and the version control (eg. Git), so we can have all the records…
johnsonzhj
  • 517
  • 1
  • 5
  • 23
1
vote
1 answer

install.packages() does not find arm64 binaries

I have been setting up renv on my Macbook with M1 chip (ARM64 architecture) and encounter problems installing packages. Basically, I think the problem is that my setup does not correctly detect my arm64 architecture and cannot find the correct…
PianoEntropy
  • 131
  • 6
1
vote
1 answer

Why does using 'actions/checkout' on GitHub Actions mean that renv can no longer use R library?

So I have a {targets} pipeline which runs on GitHub Actions. The required packages are recorded with {renv} and the whole thing runs in a docker container. Because I would prefer to have a long image build time and a short image run time, renv…
Taren Sanders
  • 421
  • 2
  • 12
1 2
3
8 9