A cool things about this is that the package cache can contain different package versions at the same time and projects on the same system may use different versions of the same package. lock file and run snapshot() and restore() to keep things in sync. When your run restore() on a new system, it checks in that systems package cache, and if a package you need is missing it installs it from CRAN (or the repo of your choice). Renv creates a system-wide cache of packages, but each project gets its own package library: When you run snapshot(), renv stores all info about the packages a project uses in a. lock file and occasionally run renv::snapshot() and renv::restore() to keep packages in sync between systems. You only have to transfer your projects' code together with the. True, but renv will do most of the heavy lifting for you.
0 Comments
Leave a Reply. |