[R] loading contrib packages automatically

Thomas Lumley thomas at biostat.washington.edu
Wed Apr 5 17:58:43 CEST 2000

On Wed, 5 Apr 2000, Prof Brian D Ripley wrote:

> 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
> .Rprofile.
> 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.

For example

and perhaps things like

Autoloading on the print methods is useful to stop very large
stored objects printing as lists.


Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle

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