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
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
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
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
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() :