I'm using R 2.0 on Redhat Linux 9. When I try to produce PDF or PS output, the files are corrupted -- they won't open in Acroread, xpdf, ggv, and on attempting to convert to PNG, I get message "This file has corrupted %%EOF marker." Perhaps I am just doing something wrong. I did:> pdf() > hist(unlist(foo.bar))I have no trouble viewing the output in Xwindows. Thanks, Hans
Hans Halvorson <hhalvors at princeton.edu> writes:> I'm using R 2.0 on Redhat Linux 9. When I try to produce PDF or PS > output, the files are corrupted -- they won't open in Acroread, xpdf, > ggv, and on attempting to convert to PNG, I get message "This file has > corrupted %%EOF marker." Perhaps I am just doing something wrong. I > did: > > > pdf() > > hist(unlist(foo.bar)) > > I have no trouble viewing the output in Xwindows.Did you terminate the device properly (dev.off() or exit from R)? -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Hi: dev.off() Check your file now... That's it! Hans Halvorson wrote:> I'm using R 2.0 on Redhat Linux 9. When I try to produce PDF or PS > output, the files are corrupted -- they won't open in Acroread, xpdf, > ggv, and on attempting to convert to PNG, I get message "This file has > corrupted %%EOF marker." Perhaps I am just doing something wrong. I > did: > > >>pdf() >>hist(unlist(foo.bar)) > > > I have no trouble viewing the output in Xwindows. > > Thanks, > Hans > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >-- U.M.A. http://sophie.fata.unam.mx/