Re: [R] Q: calling par() in .First()

2007-08-06 Thread D. R. Evans
Thomas Lumley said the following at 08/02/2007 05:25 PM : par() is in the 'graphics' package, which is not loaded by the time .Rprofile runs. You want graphics::par(bg='white') Thank you, but when I tried that, I got: Error in graphics::par(bg = white) : couldn't find function X11

Re: [R] Q: calling par() in .First()

2007-08-06 Thread Greg Snow
PROTECTED] On Behalf Of D. R. Evans Sent: Monday, August 06, 2007 9:26 AM To: r-help@stat.math.ethz.ch Subject: Re: [R] Q: calling par() in .First() Thomas Lumley said the following at 08/02/2007 05:25 PM : par() is in the 'graphics' package, which is not loaded by the time .Rprofile runs

Re: [R] Q: calling par() in .First()

2007-08-06 Thread Prof Brian Ripley
On Mon, 6 Aug 2007, Greg Snow wrote: Be aware that the effects of calls to par usually only last for the duration of the graphics device, not the R session. They always apply to the current device only (and will create a current device if possible). If you put a call to par in your startup

Re: [R] Q: calling par() in .First()

2007-08-02 Thread Thomas Lumley
On Thu, 2 Aug 2007, D. R. Evans wrote: As a result of another thread here, I need to be sure that the function par(bg='white') has executed before I create a plot. The simplest thing seemed to put it in .Rprofile: .First - function() { options(width=150) par(bg='white') } But now R

[R] Q: calling par() in .First()

2007-08-02 Thread D. R. Evans
As a result of another thread here, I need to be sure that the function par(bg='white') has executed before I create a plot. The simplest thing seemed to put it in .Rprofile: .First - function() { options(width=150) par(bg='white') } But now R complains at startup: Error in .First() :