最近在CentOS上安装了R 3.2.4,当试图通过R创建png图表时,我收到以下警告:
Warning in (function (filename = if (onefile) “Rplots.svg” else “Rplot%03d.svg”,:
unable to load shared object ‘/usr/local/lib64/R/library/Grdevices/libs//cairo.so’:
/usr/local/lib64/R/library/Grdevices/libs//cairo.so: cannot open shared object file: No such file or directory
Warning in (function (filename = if (onefile) “Rplots.svg” else “Rplot%03d.svg”,:
Failed to load cairo DLL
从在线搜索,似乎需要X11才能使cairo正常工作,但即使安装完毕,我仍然会收到警告.还尝试从R安装Cairo包,但也没有用.
我检查了Grdevices下的libs文件夹并确认没有cairo.so.
据我所知,这应该包含在R的安装中,但我没有看到它.谁知道我做错了什么?