From ripley at stats.ox.ac.uk  Mon Jul 28 20:00:52 2003
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon Jul 28 20:00:41 2003
Subject: [Rd] Recommended way to change defaultPackages under Windows
In-Reply-To: <6r1xwa36ro.fsf@bates4.stat.wisc.edu>
Message-ID: <Pine.LNX.4.44.0307281852000.25329-100000@gannet.stats>

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@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


[Rd] Recommended way to change defaultPackages under Windows
Prof Brian Ripley