Re: [R] Corrupted PDF files

2008-09-07 Thread Prof Brian Ripley
How are you executing the script? Quite possibly FAQ Q7.22 applies (it will it you use source(), for example). On Sat, 6 Sep 2008, Nathan Teuscher wrote: I have the following code that when executed from the command line works properly and produces a proper PDF. When the script is executed, t

Re: [R] Corrupted PDF files

2008-09-06 Thread Gabor Grothendieck
Its a FAQ: http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f On Sat, Sep 6, 2008 at 9:47 PM, Nathan Teuscher <[EMAIL PROTECTED]> wrote: > I have the following code that when executed from the command line > works properly and produces a proper PDF. Whe

[R] Corrupted PDF files

2008-09-06 Thread Nathan Teuscher
I have the following code that when executed from the command line works properly and produces a proper PDF. When the script is executed, the PDF produced is considered corrupt. I am using R 2.7.2 on Mac OSX 10.5.4. Thank you in advance for the help! library(lattice) pdf(file="CLDiag2.pdf")