Closed wfmueller29 closed 1 year ago
Sorry to hear you're having trouble! Is M:/
a local drive, or a network drive?
What if you set the following option first; e.g.
options(renv.config.install.staged = FALSE)
renv::install("ggplot2")
Thank you for the prompt response!
M:/
is a network drive
I just tried what you recommended and I got the same error as in error 2 above.
I think the issue here might be that the renv
cache is located on a different volume than the project, and you have:
$ renv.config.cache.symlinks : logi TRUE
set in your options. I suspect renv
is trying to create a junction point from the cache on C:/
to the network drive on M:/
, and that is failing.
Do you have better luck with:
options(renv.config.cache.symlinks = FALSE)
renv::install("ggplot2")
Or, alternatively, is placing the renv
cache somewhere on the M:/
drive an option? See https://rstudio.github.io/renv/reference/paths.html for more details. In particular, you might try setting the environment variable:
RENV_PATHS_ROOT = M:/Postbacs/Billy/renv
within the file located at ~/.Renviron
or something similar.
Just commenting to say that the options(renv.config.cache.symlinks = FALSE)
line worked for me with this same issue--getting packages to install on a network drive. Thanks @kevinushey.
Hi,
I am a new renv user and am trying to install the packages tidyverse and ggplot2 into my project library, but I am getting errors when trying to install. Below I have attached sessions info, renv::diagnostics() output, and both errors. I am also getting a similiar error when I call renv::init(). Any help would be much appreciated!
Session info
Renv Diagnostics:
Error 1:
Error 2: