From ripley@stats.ox.ac.uk  Tue Jul 16 13:09:08 2002
From: ripley@stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Tue, 16 Jul 2002 13:09:08 +0100 (BST)
Subject: EPS file generation (PR#1797)
In-Reply-To: <200207161116.NAA08672@pubhealth.ku.dk>
Message-ID: <Pine.LNX.4.31.0207161302460.1316-100000@gannet.stats>

What did you do to make an EPS file?  This would appear to be user error,
not a bug, as R does create the right header when producing EPS files.


Following ?postscript (or using dev.copy2eps) gives

postscript(file="test.eps", width = 4.0, height = 3.0,
           horizontal = FALSE, onefile = FALSE)
plot(1:10)
dev.off()

gannet% head test.eps
%!PS-Adobe-3.0 EPSF-3.0
%%DocumentNeededResources: font Helvetica
...

And if you omit onefile=FALSE, you get

%!PS-Adobe-3.0
%%DocumentNeededResources: font Helvetica
...

and *never* %!


On Tue, 16 Jul 2002 k_r_patterson@cec.eu.int wrote:

> Full_Name: Kenneth Patterson
> Version: 1.3.1
> OS: Linux Mandrake 8.1
> Submission from: (NULL) (158.166.10.72)
>
>
>
> Hello
>
> I had a problem in reading in an EPS file from R into Star Office 5.2 - although
> it
> works for several other word processors. The online support at Sun helped me
> with the following reply, indicating that the export of EPS from R was faulty.
>
> You might like to update this, at least it would be helpful for Linux/Star
> Office users.
>
> Regards
>
> KP
>
> Reply from SUN SUPPORT ->
>
> Hi Kenneth,
> Loading problems with EPS files can appear if in the file format header the file
> format information is missing (so-called "Magic"). This can be caused by the
> program which exported the EPS file. In this case, please inform the
> manufacturer of the program which causes the faulty EPS export. In the TGIF
> created EPS files, the first line reads:
>
> %!
>
> StarOffice expects however: %!PS-Adobe-3.0 EPSF-3.0
>
> If you manually modify the line, StarOffice can read this file without a
> problem.
>
> Hope this helps,
>
> Sanal
>
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


EPS file generation (PR#1797)
ripley@stats.ox.ac.uk