On Tue, 20 Apr 2004 Alexander.Herr at csiro.au wrote:
> When loading library(R2HTML) in Rprofile I get the following error:
>
> Error in firstlib(which.lib.loc, package) :
> couldn't find function "ps.options"
> Error in library(R2HTML) : .First.lib failed
> [Previously saved workspace restored]
>
> % ps.options is there
> % Loading the library from the command prompt works fine, other libraries
load fine through Rprofile.
> % This only happens since R1.9.0.
>
> Any ideas?
Please read the USER-VISIBLE CHANGES in the NEWS file. Until R2HTML is
updated to require(graphics), you need to add that to your .Rprofile,
before library(R2HTML).
I do wonder what a package is doing re-setting a global option like this:
if there is a good reason I think it should at least issue a message to
say it has done so. To my mind it makes having library(R2HTML) in
.Rprofile rather undesirable.
--
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