[R] library()

Rolf Turner rolf at math.unb.ca
Thu Dec 20 21:44:50 CET 2001


Many thanks to Prof. Brian Ripley for quickly solving my problem.  As
you will have already seen from his posting, what I should have done,
INSTEAD OF

	> .lib.loc <- c("/usr/local/lib/R/library","/home/faculty/rolf/Rlib")

was

	> .libPaths("/home/faculty/rolf/Rlib")

which appends the named library to the existing set of paths to
library trees.

I could also issue the command

	setenv R_LIBS /home/faculty/rolf/Rlib

(say by putting this line in my .cshrc file) which ensures that my
personal library gets included in the search tree whenever R is
started.  (Notice that it is not necessary to include the ``system
library'', i.e.  /usr/local/lib/R/library, in the setenv command ---
the system library is always available, willy-nilly.  If you want to
have your local library searched ***before*** the system library you
could set R_LIBS by (the analogue of)

	setenv R_LIBS /home/faculty/rolf/Rlib:/usr/local/lib/R/library

The important thing to remember is that the local object ``.lib.loc''
gets ignored in R-1.4.0; you can assign it a value, but doing so
will have no useful effect whatever.

					cheers,

						Rolf Turner
						rolf at math.unb.ca
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list