[R] (Somewhat) broken EPS files produced

Wartan Hachaturow wartan.hachaturow at gmail.com
Mon Feb 22 05:48:10 CET 2010


Hello.

I'm writing some simple text using sweave, and faced a strange problem
with eps files produced for my plots (one example attached).
Individual eps files are interpreted by ghostscript just fine, and
show up without errors. But once I try to include them into main
LaTeX/Sweave document (using regular \includegraphics, produced by
Sweave),
ghostscript gives me this error on those files:

Error: /undefinedresult in --stringwidth--
Operand stack:
   (600)   0.5
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--
--nostringval--   2   %stopped_push   --nostringval--
--nostringval--   --nostringval--   false   1   %stopped_push   1878
1   3   %oparray_pop   1877   1   3   %oparray_pop   1861   1   3
%oparray_pop   1755   1   3   %oparray_pop   --nostringval--
%errorexec_pop   .runexec2   --nostringval--   --nostringval--
--nostringval--   2   %stopped_push   --nostringval--
--nostringval--
Dictionary stack:
   --dict:1157/1684(ro)(G)--   --dict:0/20(G)--   --dict:82/200(L)--
--dict:178/300(L)--   --dict:91/200(L)--
Current allocation mode is local
Current file position is 207944
GPL Ghostscript 8.71: Unrecoverable error, exit code 1

What might be the problem?

P.S. I get exactly the same behavior on Debian/sid and OS X.

-- 
Regards, Wartan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Report-fig1.eps
Type: application/postscript
Size: 19321 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100222/83400aac/attachment.eps>


More information about the R-help mailing list