[Rd] installing packages

Jan de Leeuw deleeuw at stat.ucla.edu
Sun Nov 30 21:01:09 MET 2003

If R_LIBS is not set then R CMD INSTALL without a lib argument installs  
in R_HOME/library
while install.packages() without lib installs in the first element of  

If R_LIBS is set, then R CMD INSTALL installs in the
first directory in R_LIBS, and install.packages() still installs in the  
first element
of .libPaths() (i.e. ignores R_LIBS).

Is this difference intentional ? It would perhaps be more convenient if
.libPaths()[1] was used as a default in all cases (when no lib argument
is given).

Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
Editor: Journal of Multivariate Analysis, Journal of Statistical  
US mail: 8130 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: deleeuw at stat.ucla.edu
homepage: http://gifi.stat.ucla.edu
           No matter where you go, there you are. --- Buckaroo Banzai

More information about the R-devel mailing list