About Renv
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.profileif.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-buildwithout 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
--enable-R-shliboption to./config. If you are usingR-build, you can set an environemnt namedCONFIGURE_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.