微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

使用 kable 时出错 phantomjs 或 ghostscript 的问题?

如何解决使用 kable 时出错 phantomjs 或 ghostscript 的问题?

我正在尝试在 R 中创建一个表。我使用 mtcars 作为 ax 示例数据集。我不断收到以下错误。我真的不知道如何解决这个问题以及将某些文件或程序移动到哪里(ghostscript、magick、phantomjs ..)。有没有简单的解决办法?我没有使用 Markdown。

kable(rawCSV,"latex",booktabs = T) %>%
  kable_styling(latex_options = c("solid","scale_down")) %>%
  as_image()
  save_kable(file="table.pdf")


Error in save_kable_latex(x,file,latex_header_includes,keep_tex,density) : 
  We hit an error when trying to use magick to read the generated PDF file. You may check your magick installation and try to use magick::image_read to read the PDF file manually. It's also possible that you didn't have ghostscript installed.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。