Skip to content
Prev 25482 / 398502 Next

R and default library

(Assuming that you are on Unix/Linux,) You can install libraries from source 
to anywhere you want by using the -l flag to R INSTALL, e.g.

R INSTALL -l ~/R/library <package>.tar.gz

You can load them inside R by 

library(package, lib.loc = "~/R/library")

(If you want to do this often, you might want to have a .Renviron file under ~ 
with the line

R_LIBS=~/R/library

in which case library() will search for a package there before looking in the 
system wide location.)
On Wednesday 20 November 2002 11:39 am, Ronaldo Reis Jr. wrote:
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._