[R-SIG-Mac] (no subject)

Simon Urbanek simon.urbanek at r-project.org
Tue Oct 2 16:21:54 CEST 2007


Tom,

On Oct 1, 2007, at 3:13 PM, Tom Elliott wrote:

> I would like to export a plot from R by copying it as a pdf to the  
> clipboard (in OS X), while running in batch mode.  The idea would  
> be to wrap R's graphing capabilities in a simple GUI, which would  
> grab the result from the clipboard and display it in an NSView.  I  
> could use a temporary file on disk, but that seems not so elegant.
>

Great. So what is the question? There are many ways to do this. Which  
device do you plan to use and which of the steps are you stuck at?  
I'd suggest ?pipe, ?pdf, ?Cairo, ?quartz ... As of temporary files,  
most methods involve temporary files on the R side anyway (except for  
Cairo+patched R) and if you want a NSView then it's probably easiest  
to get it right away from Quartz - no need to create pdf at all.

Cheers,
Simon



More information about the R-SIG-Mac mailing list