Error while using cairo devices in R on ubuntu

2020-04-26 03:03发布

问题:

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.



标签: r cairo