Skip to content

(no subject)

2 messages · Tom Elliott, Simon Urbanek

#
Hi,

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.

Thanks,

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

            
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