Hi,

Is there a way to write a dataframe or table  to the clipboard as an image? I 
want to paste into an email. I use snagit or print screen to do this today but 
want to know if there is a way to do this through R.

For example I know how to write to clipboard for copy and pasting into Excel:
> write.table(df,"clipboard",sep="\t"

But what's the equivalent for .png or other image format? I can't seem to find 
it in the help file.

Note: I also tried using png()...print(df)...device.off() which I normally use 
for plots but doesn't seem to work for dataframes and tables

Dan


        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to