12

在我创建的一些 EPS 文件上运行embedFonts,我收到一条错误消息:

> embedFonts("foo.ps")
Unknown device: pswrite
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
    defaultdevice
Error in embedFonts("foo.ps") : 
  status 1 in running command 'gs -dNOPAUSE -dBATCH -q -dAutoRotatePages=/None -sDEVICE=pswrite -sOutputFile=/tmp/Rtmp3Lv0dj/Rembed2cd86df573a1 '-sFONTPATH='  'foo.ps''

我怎样才能避免这个错误?

4

1 回答 1

14

这是因为ps2write这些天来调用该设备。已删除对编写帖子脚本级别 1 的支持。下一个 R 版本(我们目前是 3.1.0,所以这可能是 3.2 左右)将包含一个修复。引用更改列表:

embedFonts()现在默认为format = "ps2write"for.ps.epsfiles。这在 Ghostscript 9.x(自 2010 年以来)中可用,而以前的默认值 ,format = "pswrite"在 9.10 中已删除。

所以快速修复是手动传递format = "ps2write"embedFonts调用。

于 2014-07-03T06:43:05.463 回答