[R-sig-Debian] Error: ... can only copy from 'X11(type="*cairo")' devices

Michael Rutter mar36 at psu.edu
Mon Jun 18 01:36:12 CEST 2012



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 advance

Luis,

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



More information about the R-SIG-Debian mailing list