On Thu, 29 Jan 2009, Christian Anderson wrote:
> Hello R-Help,
>
> I noticed that there is a thread about importing data from the clipboard
> that is very poorly answered in the forum. One user suggests giving up, the
> other gives a solution that echoes the clipboard, but that's exactly
the
> same as just ctrl-p. As I am asked this question at least once a week in my
> very small home institution, I'm sure many people want to know. If you
could
> post somewhere that for most Macs you can
>
> read.table(pipe("pbpaste")) will work for almost all
applications, that
> would be very helpful.
?pipe says:
Clipboard:
...
MacOS X users can use 'pipe("pbpaste")' and
'pipe("pbcopy", "w")'
to read from and write to that system's clipboard.
HTH,
Chuck
>
> Thank you,
> Christian Anderson
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>
Charles C. Berry (858) 534-2098
Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901