[R] Problem Writeing a pipe using R (stdin is consumed)
agobbi at anadyspharma.com
Fri Feb 21 20:53:03 CET 2003
Thanks for the answer!
However what I would like to ba able to do is something like:
perl -e 'print "1 2\n\2 2\n";' | R --silent commandFile
and commandFile would contain something like:
t<-read.table(file("t"), sep=" ")
This would need read.table to get the original stdin() and the commands to be read from a file.
The idea with the named pipe does not work either for the same reasons.
From: M.Kondrin [mailto:mkondrin at hppi.troitsk.ru]
Sent: Friday, February 21, 2003 21:43 PM
Subject: Re: [R] Problem Writeing a pipe using R (stdin is consumed)
> May be R -slave ... will help?
> man R
> -q, --quiet
> Don't print startup message
> Same as --quiet
> Make R run as quietly as possible
> R-help at stat.math.ethz.ch mailing list
$ echo "h<-1; print(h)" | R --slave
R-help at stat.math.ethz.ch mailing list
More information about the R-help