gpt4 book ai didi

r - embedFonts 提示 “Unknown device: pswrite”

转载 作者:行者123 更新时间:2023-12-04 02:02:07 24 4
gpt4 key购买 nike

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

> 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''

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

最佳答案

这是因为该设备名为 ps2write这几天。已删除对编写后脚本级别 1 的支持。下一个 R 版本(我们目前是 3.1.0,所以这可能是大约 3.2)将包含一个修复。从更改列表中引用:

embedFonts() now defaults to format = "ps2write" for .ps and .eps files. This is available in Ghostscript 9.x (since 2010) whereas the previous default, format = "pswrite", was removed in 9.10.



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

关于r - embedFonts 提示 “Unknown device: pswrite”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24546677/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com