Skip to content

packages in non-system directories

2 messages · Roger D. Peng, Peter Dalgaard

#
Quick question about installing packages on a system where you do not have
root access.  Suppose a person is using R on a shared system where he
cannot write to the installation directory (i.e. /usr/local/lib/R).  What
general advice would you give regarding where to install packages from
CRAN. Should he use the R_LIBS environment variable or maybe .libPaths()
in R or .Renviron?

Thanks,

-roger
_______________________________
UCLA Department of Statistics
rpeng at stat.ucla.edu
http://www.stat.ucla.edu/~rpeng

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Roger Peng <rpeng at stat.ucla.edu> writes:
Quick answer:

echo 'R_LIBS=/home/pd/Rlibrary' > /home/pd/.Renviron

which of course can be varied in several ways.