[R] PDF Corrupted?

2009-10-27 Thread rkevinburton
I am running R 2.9.2 and creating a PDF that I am trying to open with Adobe Reader 9.2 but when I try to open it the reader responds with There was an error opening this document. The file is damaged and cannot be repaired.: I am using the R command(s): pdf(file=cat.pdf, title=Historical

Re: [R] PDF Corrupted?

2009-10-27 Thread Marc Schwartz
On Oct 27, 2009, at 7:42 PM, rkevinbur...@charter.net wrote: I am running R 2.9.2 and creating a PDF that I am trying to open with Adobe Reader 9.2 but when I try to open it the reader responds with There was an error opening this document. The file is damaged and cannot be repaired.:

Re: [R] PDF Corrupted?

2009-10-27 Thread Bryan Hanson
Looks like you need to do dev.off() after the plot to properly close the file. Bryan * Bryan Hanson Acting Chair Professor of Chemistry Biochemistry DePauw University, Greencastle IN USA On 10/27/09 8:42 PM, rkevinbur...@charter.net rkevinbur...@charter.net wrote: I am running R

Re: [R] PDF Corrupted?

2009-10-27 Thread Jorge Ivan Velez
Hi Kevin, Close the device once the plot is completed: pdf(...) plots go here dev.off() HTH, Jorge On Tue, Oct 27, 2009 at 8:42 PM, wrote: I am running R 2.9.2 and creating a PDF that I am trying to open with Adobe Reader 9.2 but when I try to open it the reader responds with There was

Re: [R] PDF Corrupted?

2009-10-27 Thread Simon Blomberg
Try doing dev.off() after you finish the plot. That will close the device and should make it available for viewing. Cheers, Simon. On Tue, 2009-10-27 at 17:42 -0700, rkevinbur...@charter.net wrote: I am running R 2.9.2 and creating a PDF that I am trying to open with Adobe Reader 9.2 but

Re: [R] PDF Corrupted?

2009-10-27 Thread p_connolly
Quoting rkevinbur...@charter.net: I am running R 2.9.2 and creating a PDF that I am trying to open with Adobe Reader 9.2 but when I try to open it the reader responds with There was an error opening this document. The file is damaged and cannot be repaired.: I am using the R command(s):