[R] Can R read data from stdin?

Aaron J. Mackey amackey at pcbi.upenn.edu
Fri Jul 9 23:45:02 CEST 2004

On Jul 9, 2004, at 5:41 PM, Hayashi Soichi - shayas wrote:

> Also, is there a similar way I can do read.table from a pipe?

% command | R CMD BATCH --vanilla --slave input.R output

Where input.R is R code that contains a line similar to:

d <- read.table("/dev/stdin")

More information about the R-help mailing list