Skip to content
Prev 178707 / 398506 Next

problems with clipboard

Jamie,

Try it as:

data2 <- read.table(pipe('pbpaste'), header = T)

I have a read.clipboard() function defined in ~/.Rprofile:

read.clipboard <- function(){read.table(pipe('pbpaste'), header = T)}

Also see the "Clipboard" section of ?pipe.

Cheers,
Kevin


-------------------------------------------------
Kevin M. Middleton
Department of Biology
California State University San Bernardino
5500 University Parkway
San Bernardino CA 92407
On Apr 28, 2009, at 9:31 AM, Jamie.lannister wrote: