Questions tagged [renv]
129 questions
0
votes
2 answers
Using renv but still system library active
I'm just new to renv and tried to find something similar to Pythons virtualenv. So renv seems to offer what I need. I also tried packrat, but renv can load the library when one is not in that project folder.
When starting R in the renv project…

Annegret
- 37
- 1
- 7
0
votes
2 answers
renv fails on install.packages() and restore()
In both new (dummy) packages and mature packages with renv already initialized, renv fails on install.packages() and restore().
Note: to avoid tripping the spam filter, I've replaced all instances of 'https://' with 'web.'
Failure on…

dleibo
- 1
- 2
0
votes
0 answers
Load already existing libraries to renv without downloading
It's been i while since I have started coding with r but I'm new renv and r projects.
My problem is the following: we have many custom packages and libraries we use in our everyday work that are well written and work properly with rstudio.
I…

faresbdr
- 1
- 1
0
votes
1 answer
Cleaning renv cache folders in macOS
I started using renv with R 4.2.1. I upgraded to R 4.2.2 and I could not use some packages (e.g. markdown). I followed this guide to update the cache and now I have two…

Hahnemann
- 4,378
- 6
- 40
- 64
0
votes
0 answers
Using renv to maintain a project across multiple computers and R versions
Working across the home (R version4.1.0, Mac OS X intel i0) and work (R version 4.2.1, Apple M1) computers, I find that I have to reinitialize the project renv::init() followed by option 2 to re-initialize the lock file. Otherwise, the code doesn't…

dapple-putt-poultry
- 103
- 6
0
votes
0 answers
Stan model not compiling with brms (only) in combination with Renv: 'omp.h' file not found
I have code to specify a stan model using the brms package. This code works well when using RStudio without a project open. However, when I open an RStudio project, I receive an error when trying to compile the stan model:
Error in compileCode(f,…

Jasper
- 555
- 2
- 12
0
votes
0 answers
How can I install all my project library packages in my system library?
I am using the r package renv. I have somehow managed to delete most of my system library packages. Fortunately, one of my project renv.lock files contains nearly all my packages.
What I want to do is to install all the packages in the renv.lock…

RibbitRibbit
- 93
- 5
0
votes
0 answers
renv: Disable all repos exept local repo
I'm using the renv package but can only install R packages from a local source/repo. The local source/repo is in my profile as checked with options('repos'). renv also installs packages correctly from the local source/repo.
However, apparently renv…

Peter
- 2,120
- 2
- 19
- 33
0
votes
0 answers
Renv package not installing
I've attempted to load up my rstudio after some maintenance work was carried out on the system and none of my packages were installed. Everything points back to renv not being available! When I try to run my Rmd I get the following error after…

Tamzin Webb
- 1
- 1
0
votes
1 answer
Using base load in an active renvironment
I am working on an R markdown notebook in an active renv in my R project directory. Before I had activated the environment, I could use the load function from base R without a problem. But since activating the environment, I get errors when I use…

dapple-putt-poultry
- 103
- 6
0
votes
1 answer
Fail to install older version of stringi using renv
I've been trying to install an older version of stringi using renv and am getting the following error. I've had a few earlier errors using restore, but a few restarts have been able to move things through. I tried removing and reinstalling stringi,…

Corey
- 405
- 2
- 6
- 18
0
votes
0 answers
R package (renv) folder is repeating in R library folder
I noticed that when I use renv, the renv folder in my library is super messed up. The contents of the folder is as…

Shortytot
- 1
- 1
0
votes
1 answer
Error with install.packages using renv|knit|rmarkdown
I'm updating the renv folder from a project in order to adjust the libraries, but it seems I'm having a permission problem. After running renv::init() and trying to installing manually the remaining libraries using install.packages() I always get…

André F
- 25
- 3
0
votes
1 answer
renv paths - empty libraries when sharing R project which uses renv package
I'm using the 'renv' R package in an RStudio project to control/lock the package versions used by my script. The libraries sit in the project directory under ... renv\library\R-4.1\x86_64-w64-mingw32. I'm using R version 4.1.3 and renv 0.15.5. When…

Andrew15
- 39
- 9
0
votes
1 answer
How to reuse Renv from other git project
I'm working through Renv and how it works. I was wondering how the workflow is when I start a new project and install a project from gitlab which itself contains an renv configuration.
Is there a way to copy this renv for my new project without…

Ai4l2s
- 525
- 2
- 9