Kryo
Kryo

Reputation: 933

Install R in linux/Unix without having root privilage?

I am trying to install R in our cluster(OS of cluster 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 getting error:

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

Upvotes: 9

Views: 12231

Answers (1)

anilbey
anilbey

Reputation: 1977

An alternative is to install r-base from conda. One does not need the root privilege for doing it. The root privilege is not needed for installing anaconda/miniconda, neither.

Installing r-base through conda:

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 on the environment.
One disadvantage of installing R from conda is that the R version available at conda might not always be the latest version of R.
Link to the corresponding conda package: https://anaconda.org/r/r-base

Upvotes: 9

Related Questions