Skip to content

reading from clipboard error

2 messages · Alan Kelly, Mark Cowley

#
Alan Kelly <AKELLY <at> tcd.ie> writes:
"Read some or all text lines from a
use read.delim(pipe("pbpaste"))
result in a data frame and not a
did not have a variable name
but the result still contains all 4
file has variables names (as is
Thanks for all the replies, and thanks Alan for finding the workaround!

For silent operation with.without the final EOL:
suppressWarnings(read.delim(pipe("pbpaste"), header=FALSE))

+ a bit of R-fu to convert 1D data.frame's into vector's when appropriate

cheers,
Mark