Error while using cairo devices in R on ubuntu

荒凉一梦 提交于 2019-12-02 13:58:20

问题


I'm working on cairo devices. I'm generating cairo_pdf and getting error message shown below.

cairo_pdf("DATA")
Warning messages:
1: In cairo_pdf("DATA") :
  unable to load shared object '/usr/local/lib64/R/library/grDevices/libs//cairo.so':
  /usr/local/lib64/R/library/grDevices/libs//cairo.so: undefined symbol: png_set_longjmp_fn
2: In cairo_pdf("DATA") : failed to load cairo DLL

How can I fix this?


回答1:


Looks like you need to reinstall / rebuild that package.

You can also install the earlier cairodevice package which I packaged for Debian via a quick sudo apt-get install r-cran-cairodevice.



来源:https://stackoverflow.com/questions/13793763/error-while-using-cairo-devices-in-r-on-ubuntu

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!