I\'m using:
R version 3.0.0 (2013-04-03) -- \"Masked Marvel\"
Platform: x86_64-pc-linux-gnu (64-bit)
I try to use read.csv
to inpu
I think the answer in the first link you posted may actually be applicable. R appears to create a 4 byte buffer on /dev/stdin. Also, as mentioned in the comment, you can use stdin instead, and it appears to work fine. (Although I still don't get why you have to hit Ctrl+D twice).
d <- read.csv(file='stdin', header=TRUE)
a,b
1,2
3,4
# Hit Control+D twice.
> d
a b
1 1 2
2 3 4