Reputation: 1713
when I try to create png files using R in linux platfrom, my R window hangs. I try to search google about possible causes, but answer. I install Cairio package for R. Has anybody seen this issue?
This is the session info:
> library(Cairo)
> sessionInfo()
R version 2.14.2 (2012-02-29)
Platform: x86_64-unknown-linux-gnu (64-bit)
locale:
[1] C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Cairo_1.5-1
> x<-1:100
> png(filename = "Rplot%03d.png", width = 480, height = 480,
+ )
at this point, it hangs
Upvotes: 0
Views: 936
Reputation: 368241
Look at capabilities()
and see if it lists PNG:
> capabilities()
jpeg png tiff tcltk X11 aqua http/ftp sockets libxml
TRUE TRUE TRUE TRUE TRUE FALSE TRUE TRUE TRUE
fifo cledit iconv NLS profmem cairo
TRUE TRUE TRUE TRUE TRUE TRUE
>
That's on my Ubuntu machine using the pre-built binary from Michael's repo (mirrored on CRAN) using the Debian package I maintain. We make sure that just about everything that can be provided is provided -- aqua is Mac-only.
Upvotes: 2