[R] Change the location of R

Loris Bennett loris.bennett at fu-berlin.de
Wed Mar 2 15:51:22 CET 2016


Hi Carol,

carol white via R-help <r-help at r-project.org> writes:

> Hi,I have R v 3.0 installed /usr/... and the new version R-3.2.3 in my
> home under ubuntu. Is it correct to copy the R-3.2.3 directory into
> /usr/local/lib/R/ or should I reconfig and remake into
> /usr/local/lib/R/?
> Regards,
> Carol

The standard way is just to use the --prefix option of configure to
point to the directory in which you want to install R.  However, you can
probably just move the directory as well.  Either way, you need to
ensure that R is found.  For that you will have to do add something like

export R_HOME=/path/to/R/3.2.3/lib64/R 
export PATH=/path/to/R/3.2.3/bin:$PATH

to your .bashrc file (e.g. /home/carol/.bashrc).

HTH

Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin         Email loris.bennett at fu-berlin.de



More information about the R-help mailing list