[R] png(): Linux vs Windows

(Ted Harding) Ted.Harding at manchester.ac.uk
Mon Oct 13 00:02:56 CEST 2008


Hi Folks,
Quick question. I have the following line in an R code file
which runs fine on Linux:

if(PNG) png(GraphName,width=12,height=15,units="cm",res=200)

I learn that, when the same code was run on a Windows machine,
there was the following error:

Error in png(GraphName,width=12,height=15,units="cm",res=200): 
        unused argument(s) (units = "cm")

Sorry to be a bother -- but could a Windows Ruser put me wise
on any differences between png() on Windows and Linux?

(And, sorry, I don't know what version of R, nor what version
of Windows, this occurred on).

Thanks,
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 12-Oct-08                                       Time: 23:02:41
------------------------------ XFMail ------------------------------



More information about the R-help mailing list