[Rd] Recommended way to change defaultPackages under Windows

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jul 28 20:00:52 MEST 2003


On 28 Jul 2003, Douglas Bates wrote:

> What is the recommended way to change the default set of packages that
> are loaded at startup by R for Windows?  I am writing vignettes for
> the Devore6 package which my introductory engineering statistics
> students will use and I would like to describe how the R environment
> can be changed so that this package is loaded by default.
> 
> I understand from the R for Windows FAQ that one way would be to
> install a Rprofile or Rprofile.site file containing
> 
> options(defaultPackages = c(options("defaultPackages"), "Devore6"))
> 
> Would this be the recommended way?

Yes, except that using Rprofile.site (can be called Rprofile) needs write
access to the R installation (or setting an environment file R_PROFILE),
and otherwise it is .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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list