[R] RHOME

Martin Maechler maechler at stat.math.ethz.ch
Fri Feb 3 10:10:19 CET 2006


>>>>> "Martyn" == Martyn Plummer <plummer at iarc.fr>
>>>>>     on Thu, 02 Feb 2006 22:34:23 +0100 writes:

    Martyn> Quoting "Daniel A. Powers"
    Martyn> <dpowers at mail.la.utexas.edu>:
    >>  R-help --
    >> 
    >> I built R-2.2.1 in my own directory on a sun
    >> (solaris). Now I would like the sysadmin to move the
    >> contents to /usr/local/lib and place the binary in
    >> /usr/local/bin. No problem.  However, the RHOME variable
    >> defaults to the directory from which R was built so it is
    >> not usable by anyone but me or ROOT. I would like to
    >> avoid building this again if possible. Any ideas?
    >> 
    >> Thanks, Dan

    Martyn> R is designed to run from its build directory.  But
    Martyn> if your sysadmin installs it with "make install" (as
    Martyn> root), then the shell wrapper that is installed in
    Martyn> /usr/local/bin/R will have R_HOME pointing to the
    Martyn> right location (/usr/local/lib/R).  Literally moving
    Martyn> the build directory to another location is the wrong
    Martyn> thing to do.

well, but very easily fixable, and that's what Daniel is asking
for:

The default value of R_HOME is only set in exactly one place,
namely the 'R' shell script; editing that script - once after
the move - is really a piece o'cake.




More information about the R-help mailing list