On 22/05/2019 8:57 p.m., Abby Spurdle wrote:
 > I'd like to be able to access the windows clipboard from R under Cygwin.
 > Is this supported in any way?  Thanks

Hi Ed

You can access the Windows clipboard under Cygwin.
I ran R within Cygwin.
I was able to use read.table (file="clipboard") for both plain text and Excel tables.

 > #table copied from excel
 > tbl = read.table (file="clipboard", TRUE)
 > tbl
   A B  C  D
1 1 5  9 13
2 2 6 10 14
3 3 7 11 15
4 4 8 12 16

Note that when copying plain text you may need to include a final newline character.

The X11() message is suspicious.
I'm wondering what type of object you're trying to copy...?

I think Ed was running the Cygwin build of R. Cygwin can run the Windows build of R, and it sounds as though that's what you did (and what Ed should do.)

Duncan Murdoch

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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