Install R on linux / Unix without root privilege?

I am trying to install R on our cluster (Cluster OS is Red Hat Enterprise Linux 6) where I do not have root access. I tried:

$wget http://cran.rstudio.com/src/base/R-3/R-3.1.1.tar.gz
$ tar xvf R-3.1.1.tar.gz
$ cd R-3.1.1
$ ./configure --prefix=/home/Kryo/R-3.1.1

      

But the error is:

configure: error: --with-x = yes (default) and X11 headers / libraries not available

+3


source to share


2 answers


This is not possible without root access.



You can link to here and here for details.

0


source


An alternative is to install r-base from conda. This does not require root privilege. Root privilege is not required to install anaconda / miniconda.

Installing r-base via conduit:

conda install -c r r-base

      



Once R is installed, you can install R packages as usual, and conda will detect them and list them in the environment.
One drawback of installing R from conda is that the version of R available in conda may not always be the latest version of R.
Link to the corresponding conda package: https://anaconda.org/r/r-base

0


source







All Articles