In our company we have multiple data analysis projects per month and somtimes I have to reuse code I wrote over 5 years ago. Because of that I really like the idea of "renv" and I'd like to introduce renv to my coworkers. However, I have problems setting this up and would appreciate If someone could help me with these questions:
When I called renv::init() for the first time, all my packages were copied in local cache. However, the cache should be the same for all users, so I set
RENV_PATHS_CACHE to a path. Unfortunately everytime I install a package its getting downloaded again. I reinstalled R, Rstudio and all packages but the cache does not rebuild itself. Is it somehow possible to rebuild the cache manually?
For every new project I have to "install" all packages I use. Is it possible to set some packages as "default" when doing renv::init() so I don't habe to "reinstall" the most used packages for every new project?
It is documented, that the cache should be on the same volume as the project. What is the reason for this? Our projects are on a networkdrive. But if I set the cache to that drive then every package has to be loaded over the network.
You may also want to set
RENV_PATHS_CACHEso that the global package cache can be stored on the same volume as the projects you normally work on. This is especially important when working projects stored on a networked filesystem.
Thanks and best regards