[R] Cairo device won't output the PNG

Ben Bolker bbolker at gmail.com
Tue Feb 15 22:34:53 CET 2011


Ash Pol <cruul2 <at> live.com> writes:

> 
> 
> Hi All,
> I have been experiencing a strange issue ever since I upgraded my R and the
packages. I cannot plot anything
> to the CairoPNG device.For an example:

Cairo(600, 600, file="plot.png", type="png", bg="white")
plot(1:10)
dev.off()

will create an empty plot.png file. I am running R 2.12.1 (32bit) on Windows 7
(64bit).
> -----------------------------

> sessionInfo()
R version 2.12.1 (2010-12-16)Platform:
> i386-pc-mingw32/i386 (32-bit)
> locale:[1] LC_COLLATE=English_United States.1252
 [snip]
 
attached base packages:[1] grDevices datasets  splines   
graphics  stats     tcltk     utils     methods   base     
other attached packages:[1] Cairo_1.4-6     svSocket_0.9-51 
   TinnR_1.0.3     R2HTML_2.2      Hmisc_3.8-3    
    survival_2.36-2 rcom_2.2-3.1    rscproxy_1.3-1 
loaded via a namespace (and not attached):
[1] cluster_1.13.2  grid_2.12.1     lattice_0.19-17
  svMisc_0.9-61   tools_2.12.1

   Works for me (Ubuntu 10.04 
[Platform: i486-pc-linux-gnu  (32-bit) ], 
R 2.12.1/Cairo 1.4-6

  May I suggest:

(1) try running with R --vanilla to minimize any other packages
getting loaded/possibility of weird conflicts (unlikely but worth
ruling out)
(2) contact the package maintainer



More information about the R-help mailing list