Luis Ridao
2012-Jun-13 13:04 UTC
[R-sig-Debian] Error: ... can only copy from 'X11(type="*cairo")' devices
Hey, I'm running R in ubuntu 10.10 (R-2.15.0) and when saving a plot i get the following error message:> plot(1:10) > savePlot("test.png",type="png")Error in savePlot("test.png", type = "png") : can only copy from 'X11(type="*cairo")' devices>Thanks in advance [[alternative HTML version deleted]]
Michael Rutter
2012-Jun-17 23:36 UTC
[R-sig-Debian] Error: ... can only copy from 'X11(type="*cairo")' devices
On 06/13/2012 09:04 AM, Luis Ridao wrote:> Hey, > > I'm running R in ubuntu 10.10 (R-2.15.0) > and when saving a plot i get the following error message: > >> plot(1:10) >> savePlot("test.png",type="png") > Error in savePlot("test.png", type = "png") : > can only copy from 'X11(type="*cairo")' devices >> > > > Thanks in advanceLuis, Sorry for the delay in the response. The issue is that you are not using and X11/cairo device. For example, if you use RStudio, the savePlot command does not work, but you can save from within RStudio. If you run R from just a terminal, it should work. Hope this helps, Michael -- Dr. Michael A. Rutter School of Science Penn State Erie, The Behrend College 4205 College Drive Erie, PA 16563 http://math.bd.psu.edu/faculty/rutter mar36 at psu.edu