hi, this is a common issue and i have worked out for times. my solution is sample but a little time-comsuming:
first, you need know what your system version and try to install the X11 lib (cause the next cairo will need some X11 libs: in centos you can try
yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"
then, install cairo-devel and recompile your R from source code with ./configure --with-x=no
to check wether the steps above is ok, open your R and type capabilities()
you may see
jpeg png tiff tcltk X11 aqua http/ftp s ockets libxml fifo cledit
TRUE TRUE TRUE TRUE FALSE TRUE TRUE TRUE TRUE TRUE
iconv NLS profmem cairo
TRUE TRUE TRUE TRUE
please note that the cairo must be true, and if not ,there must be some thing wrong in your packages'installlation(PS: in your R, cairo package must be also installed)
if you see the output like i mentioned above , it means you can generated common images now.
PS : this is non of shiny's bussiness.
在 2014年2月27日星期四UTC+8上午8时33分12秒,Daniel Bowen写道: