Closed aridyckovsky closed 3 years ago
According to the author of renv
, this is a replacement for packrat
. See https://rstudio.github.io/renv/articles/renv.html.
Importantly, renv
documentation claims
If you’re using a version control system with your project, then as you call renv::snapshot() and later commit new lockfiles to your repository, you may find it necessary later to recover older versions of your lockfiles. renv provides the functions renv::history() to list previous revisions of your lockfile, and renv::revert() to recover these older lockfiles.
Currently, only Git repositories are supported by renv::history() and renv::revert().
For collaborative use, see https://rstudio.github.io/renv/articles/collaborating.html
Problem Development environments at the local level currently require global package installation.
Solution Install and configure required packages for developing
itrackvalr
. Note that this is potentially different from the futurerenv
used for the CSN-specific analysis.Alternative solutions Another option is
packrat
, but I have experienced issues with this option in the past. It's a viable alternative ifrenv
is worse.