Skip to content
Prev 8863 / 15075 Next

reading from clipboard error

Mark Cowley <m.cowley <at> garvan.org.au> writes:
the last line is silently skipped. Note
thus I think it doesn't even see the final line.
copy to clipboard, then
I can replicate this with readLines if I stop
the blocking right after the D but not if
I take the whole line.
I don't get it though with either read.table or scan
[1] "A" "B" "C"
V1
1  A
2  B
3  C
4  D
Warning message:
In read.table(pipe("pbpaste")) :
  incomplete final line found by readTableHeader on 'pbpaste'
Read 4 items
[1] "A" "B" "C" "D"