Albrecht,
I tried this:
>oldfin<-par("fin")
>oldfin
[1] 6.990803 6.997416>par(fin=oldfin)
on my system (Linux and R-0.61.2) and received no error message, as also
reported by Thomas Lumley. I then tried to create the error,
successfully, by:
>oldfin<-c(7,7)
>par(fin=oldfin)
Error: attempt to set invalid value for graphics parameter "fin".
Thinking that I might be able to finesse the problem by altering the
.First function to set x11() slightly larger, which can then accept the
new, larger value, I found that 'par' played catch-up:
> dev.off()
> x11(width=7.1,height=7.1)
> par("fin")
[1] 7.097533 7.090715
However, you may get around it by including a
par(fin=c(6.95,6.95))
assignment in .First after the call to x11(), which might allow you to
read and reset 'fin' without problems. Unfortunately, I can't test
it
conclusively, as I don't get the error.
Your conjecture about the rounding error is probably correct, as when I
incremented the value of 'oldfin' by one in the 6th decimal place, I got
the error.
Jim
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._