Skip to content

R-alpha: RHOME

1 message · Paul Gilbert

#
I find this a much better way to organize things. Old versions of
packages can be removed cleanly with

rm -r library/<package>

It also means that the userid for the maintainer of a package does not
necessarily need to be the userid of R.
There seems to be an assumption here that RHOME will be the same no
matter what machine you are running on. I would set RHOME depending on
the machine, eg.

RHOME=/usr/local/lib/R-Sun4
RHOME=/usr/local/lib/R-Sun5
RHOME=/usr/local/lib/R-Linux386

and then use links to the XDR files and other files which are not
machine dependent, so they do not have to be duplicated.

Determining the platform universally may be fairly difficult, but at a
given site there is usually a fairly small mix of machines and it is
possible to write a shell script to determine the machine. In fact,
this is a pretty common problem and you are probably already doing it
in your .login or .chrc.

Paul Gilbert
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-