[R] Pb on startup with R1.9.0
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Apr 16 11:06:17 CEST 2004
On Fri, 16 Apr 2004, Uwe Ligges wrote:
> Erwan BARRET wrote:
>
> > I'm using Rprofile file on R1.9.0 startup and inside I'm loading a personal Library which uses winMenuAdd() and I've got this error :
> > Error in eval(expr, envir, enclos) : couldn't find function "winMenuAdd"
> > I hadn't this problem with others R versions.
> > What Can I do now to avoid that?
> > I'm using R1.9.0 under Win98.
>
>
> winMenuAdd() is in package "utils" and that is not loaded when Rprofile
> is executed. You might want to add an explicit call to require("utils").
It is better to set a start hook. This is in the section at the very
start of the NEWS file, which points you to ?setHook which has a similar
example.
--
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-help
mailing list