Renv: environement/version management for R
Renv lets you be able to install multiple R versions and choose which to use globally or per-project.
Usage, tutorial and source and be found at its github. Here's some additional hints.
When you add
Renvto your path, the code given at the page above may not work, because your linux may not use
.bash_profile, though this is common case. How to add it to your path depends on your linux, probably
.bash_profiledose not work.
R-build is an
Renvplugin that provides an Renv install command to compile and install different versions of R on UNIX-like systems.
You can also use
R-build without Renv in environments where you need precise control over R version installation.
Again follow the official tutorial here.
- If you need your Renv R versions work with RStudio, you need to provide
./config. If you are using
R-build, you can set an environemnt named
CONFIGURE_OPTSto provide additional configuration options.
It might not be so amazing as to have
virtualenv with Python, but it helps when you need multiple R versions, or some packages of a pecific version.