The renv package1 helps you create reproducible environments for your R projects. Use renv to make your R projects more isolated, portable and reproducible.
- Isolated: Installing a new or updated package for one project won’t break your other projects, and vice versa. That’s because renv gives each project its own private library.
- Portable: Easily transport your projects from one computer to another, even across different platforms. renv makes it easy to install the packages your project depends on.
- Reproducible: renv records the exact package versions you depend on, and ensures those exact versions are the ones that get installed wherever you go.
Install the latest version of renv from CRAN with:
install.packages("renv")