[R] R 1.1.0 dev.print()
Stephen Eglen
stephen at cogsci.ed.ac.uk
Thu Jul 6 17:01:30 CEST 2000
Hi, I just upgraded to 1.1.0 from 1.0.1 this morning on my OSF/1
machine. I now have problems with the following code:
%E /tmp 43% R --vanilla
Version 1.1.0 (June 15, 2000)
...
> test2 <- function ()
{
plot(runif(30))
ofile <- "/tmp/newfile.ps"
dev.print(file = ofile)
}
+ + + + + > > test2()
Error in device(...) : Object "ofile" not found
However, if I just write the filename directly into the call to
dev.print() rather than using a variable name, it works okay:
> test1 <- function ()
{
plot(runif(30))
dev.print(file = "/tmp/newfile.ps")
}
+ + + + > > test1()
X11
2
I just checked, and test1() works fine on R-1.0.1 - what am I doing wrong?
Thanks, Stephen
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list