Skip to content
Prev 1532 / 63424 Next

EPS

On Fri, 30 Oct 1998 Ted.Harding@nessie.mcc.ac.uk wrote:

            
Given that everyone else has to have filters to correct FrameMaker's PS
exports to be valid EPS, perhaps writing a filter for import to FrameMaker
would be poetic justice.  You make this change by a one-line sed or perl
command.
Sorry, but no, they cannot (see later on the same page as the note you
quoted earlier). Any PostScript file may have %%BoundingBox comment in it,
and many non-EPSF files do (notably those produced by S-PLUS for Windows). 
(Note: I am distinguishing the EPSF file format from EPS files; there are
additional requirements).
It will not defeat properly written DSC-compliant software if it is really
an EPSF file: but see below. Some print spoolers (notably some of HP's) 
fail the caveat in my experience -- even at HP's own labs.
Paul did not tell us which version of R he is using, and the postscript()
driver has been changed in 0.63. However, I believe that if it does produce
a valid EPSF file it should have EPSF-3.0 in the header, and if it does not
it should definitely not.

My belief is that R's postscript() does meet the requirements for EPS, but
the files will be EPSF only if they contain a single plot.  It is not for
nothing that Allan Wilks' S postscript driver has arguments onefile=F,
print.it=F for EPSF files (this means the plots are put in separate files).

BTW, that help page says

     The postscript produced by R is EPS (Encapsulated
     PostScript) compatible, and can be included into other
     documents, e.g. into LaTeX, using
     `\psfig{file=<filename>}'.

and psfig has never been part of LaTeX and has been deprecated by the LaTeX
team since the former LaTeX2e became LaTeX in 1994. The preferred way is
the graphics/graphicx packages; these make the interim epsfig package
defunct.

Brian