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?