[R-SIG-Mac] Saving or copying graphics from Quartz returns empty file

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jan 29 17:19:35 CET 2013

On 29/01/2013 14:01, Simon Urbanek wrote:
> On Jan 25, 2013, at 10:59 AM, Heather CHAPMAN wrote:
>> Hi,
>> Can anyone suggest some help for saving or copying graphs I've created in the Quartz screen? I've read the R-FAQ and tried to search for answers, but have not found anything. I'm using a Mac, Mountain Lion OS, and have version 2.15.2 of R.
>> When I save a graphic, the process either crashes R, or if it saves a file, when I open it I get a blank file or an error message that reads "The file Rplot.pdf could not be opened." When I try to copy the graphic instead to paste into any other program (Word, Excel, etc), a blank image frame is all I get. I have also tried running graphics and either saving or exporting from RStudio and have the same issues.
>> I assume there is some package I've not loaded or some bug fix I need to get, but I can't find any documentation about it. Any ideas?
> The easiest WYSIWYG way is to use
> quartz.save("foo.pdf","pdf")
> which works in the R.app GUI.

In R-devel (3.0.0-to-be) it also works in command-line R.

> Nonetheless, copy/paste works as well although it uses a different way. If we are to look into that, can you tell us exactly what OS version are you on and provide sessionInfo() to have an idea about your setup?

I took this to mean 'Save' from the quartz() device menu, which works 
for me (on Lion and ML).

> Cheers,
> Simon

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-SIG-Mac mailing list