[R] R 2.0.1 jpeg() png() pdf() Mac OSX 10.3.5 - empty files being created

Thuan-Jin Kee kee at wehi.EDU.AU
Wed Nov 24 07:09:56 CET 2004


Hi everyone,

I've been opening up R 2.0.1 from the dock and then starting the Mac OSX
X11 server.

After that I call

>jpeg("test.jpg",plot(rnorm(10)))

and r pops up a quartz window with the appropriate graph in it and puts a
file called test.jpg into the HOME which is 0kb in size and is completely
empty.

There is no error message.

I've tried
>png("test.png", plot(rnorm(10)))

and
>pdf(plot(rnorm(10)))

with the same result.

I'm sure that I've got the appropriate libpng and jpeg libraries installed
correctly from sourceforge as linked to by http://www.economia.unimi.it/R/

Thanks in advance
Yours

Jin Kee




More information about the R-help mailing list