Hadley Wickham
2009-Jun-12 12:42 UTC
[R] Programmatically copying a graphic to the clipboard
Hi all, Is there a cross-platform way to do this? On the mac, I cando this by saving an eps file, and then using pbcopy. Is it possible on other platforms? Hadley -- http://had.co.nz/
Michael Lawrence
2009-Jun-13 12:57 UTC
[R] Programmatically copying a graphic to the clipboard
Possible using RGtk2. Just need to get it into a GdkPixbuf. See gtkClipboardSetImage(). To get a graphic as a pixbuf, you can use cairoDevice (drawing to a GdkPixmap and copying over), or output the graphic to a temporary file and read it back in. Michael On Fri, Jun 12, 2009 at 5:42 AM, Hadley Wickham <hadley@rice.edu> wrote:> Hi all, > > Is there a cross-platform way to do this? On the mac, I cando this by > saving an eps file, and then using pbcopy. Is it possible on other > platforms? > > Hadley > > -- > http://had.co.nz/ > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]