**From:** Alberto Gobbi (*agobbi@anadyspharma.com*)

**Date:** Sun 23 Feb 2003 - 09:22:56 EST

**Next message:**Andrew C. Ward: "Re: [R] question"**Previous message:**rab: "[R] Problem Replicating Venables & Riply Split-Plot Example"**Maybe in reply to:**Alberto Gobbi: "[R] Problem Writeing a pipe using R (stdin is consumed)"**Next in thread:**Huntsinger, Reid: "RE: [R] Problem Writeing a pipe using R (stdin is consumed)"

Message-id: <F71FE60EC95F164BB32C51B0E7A9C4C76B9FE1@eggs.anadys.anadyspharma.com>

Actually I must correct myself, the named pipe will work (thanks Reid!).

Also the suggestion to mix R commands and data should work, but I think I prefer the named pipe. The datafile will be huge in my case like GB, so that is the reason I do not want to use temporary files.

Thanks to everybody!

Alberto

-----Original Message-----

From: Alberto Gobbi

Sent: Friday, February 21, 2003 11:52 AM

To: R-Help

Subject: RE: [R] Problem Writeing a pipe using R (stdin is consumed)

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=" ")

print(t*2)

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.

Thanks again,

Alberto

-----Original Message-----

From: M.Kondrin [mailto:mkondrin@hppi.troitsk.ru]

Sent: Friday, February 21, 2003 21:43 PM

To: R-Help

Subject: Re: [R] Problem Writeing a pipe using R (stdin is consumed)

M.Kondrin wrote:

*> May be R -slave ... will help?
*

*> man R
*

*> ...
*

*> -q, --quiet
*

*> Don't print startup message
*

*>
*

*> --silent
*

*> Same as --quiet
*

*>
*

*> --slave
*

*> Make R run as quietly as possible
*

*>
*

*> ...
*

*>
*

*> ______________________________________________
*

*> R-help@stat.math.ethz.ch mailing list
*

*> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
*

*>
*

$ echo "h<-1; print(h)" | R --slave

[1] 1

$

______________________________________________

R-help@stat.math.ethz.ch mailing list

http://www.stat.math.ethz.ch/mailman/listinfo/r-help

______________________________________________

R-help@stat.math.ethz.ch mailing list

http://www.stat.math.ethz.ch/mailman/listinfo/r-help

______________________________________________

R-help@stat.math.ethz.ch mailing list

http://www.stat.math.ethz.ch/mailman/listinfo/r-help

**Next message:**Andrew C. Ward: "Re: [R] question"**Previous message:**rab: "[R] Problem Replicating Venables & Riply Split-Plot Example"**Maybe in reply to:**Alberto Gobbi: "[R] Problem Writeing a pipe using R (stdin is consumed)"**Next in thread:**Huntsinger, Reid: "RE: [R] Problem Writeing a pipe using R (stdin is consumed)"

*
This archive was generated by hypermail 2.1.3
: Tue 01 Jul 2003 - 09:11:23 EST
*