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() : couldn't find function "par"

I have confirmed that once R has started, I can type "par(bg='white')"
and R no longer complains.

ISwR has a nice little section on "Using par", but there's no hint
that something like this can go wrong :-(

So what am I not understanding this time?

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to