[R] PDF and PS output

Peter Dalgaard p.dalgaard at biostat.ku.dk
Wed Mar 30 21:49:43 CEST 2005


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




More information about the R-help mailing list