[R] loading contrib packages automatically

Prof Brian D Ripley ripley at stats.ox.ac.uk
Wed Apr 5 17:13:42 CEST 2000

On Wed, 5 Apr 2000, Faheem Mitha wrote:

> Dear R people,
> If I want to use a package, say nlme, I need to say library(nlme) to
> load it. The same with any others. I often forget to do this. Is there
> some way of telling R which packages should be loaded at the start?

Use a .First function, or, easier, put the library commands in your

HOWEVER, using these will just slow down both the startup and the running
of R, especially large packages such as nlme. One way is out is via
judicious use of autoload() in your .Rprofile.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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