Install multiple versions of R

When I was at school, several versions of R were installed by the system administrator. I encountered an error with R-3.1.0 and you need to install a new version of R for development while this error is being studied, but I do not see any documentation on how to have several parallel versions of R on the same system ti should look something like

$ ls -l /usr/lib | grep R-
lrwxrwxrwx  1 root  root         8 Jun  3 09:41 R -> R-3.1.0/
drwxr-xr-x  9 root  root      4096 May 15 11:56 R-3.1.0
drwxr-xr-x  9 root  root      4096 May 15 11:56 R-3.0.3


$ ls -l /usr/bin | grep R-
lrwxr-xr-x  1 root  root         8 Jun  3 09:41 R -> R-3.1.0
-rwxr-xr-x  9 root  root      4096 May 15 11:56 R-3.1.0
-rwxr-xr-x  9 root  root      4096 May 15 11:56 R-3.0.3

I do not see documentation on how to achieve this, either in R Installation and Administration , or in configure --help. I start the Gentoo system and ebuild removes or overwrites the previous version of R during installation, so I will most likely install it from the source.

+4
source share
2 answers

, , .

r-devel R, . script / R-devel R-devel Rscript-devel. , , , , r-sig-debian, . , .

, R-, . /usr/local /usr/local/bin. script R R_HOME_DIR " ".

Fancier , Linux - docker, , - R ..

+4

R, Linux schroot debootstrap R, ... RedHat, Ubuntu Debian.

. : https://wiki.ubuntu.com/DebootstrapChroot

( , chrooted- 20 )

0

Source: https://habr.com/ru/post/1543095/


All Articles