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

**Date:** Sat 22 Feb 2003 - 03:15:47 EST

**Next message:**Deepayan Sarkar: "Re: [R] how to turn axis labels for trellis/dotplot"**Previous message:**Dirk Eddelbuettel: "Re: [R] GARCH with t-innovations"**Next in thread:**Huntsinger, Reid: "RE: [R] Problem Writeing a pipe using R (stdin is consumed)"**Maybe reply:**Huntsinger, Reid: "RE: [R] Problem Writeing a pipe using R (stdin is consumed)"**Maybe reply:**Alberto Gobbi: "RE: [R] Problem Writeing a pipe using R (stdin is consumed)"**Maybe reply:**M.Kondrin: "Re: [R] Problem Writeing a pipe using R (stdin is consumed)"**Maybe reply:**Alberto Gobbi: "RE: [R] Problem Writeing a pipe using R (stdin is consumed)"**Maybe reply:**Huntsinger, Reid: "RE: [R] Problem Writeing a pipe using R (stdin is consumed)"

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

Hi everybody,

I a, trying to use R as a pipe like this:

cat inputData | R --silent RCommandFile >outputData

The RCommandFile would contain something like readLines(stdin()).

I have tryed various things and none did work cleanly.

One possible solution is to use the pipe() function inside R and to pass in the "cat inputData" however this is not very convenient

since I would like to use variable commands to generate the inputData which are much more complex than just "cat inputData" they might consist themselves of multiple pipes.

The problem is that R uses the stdin for itself to read commands and I could not find any solution.

Thanks a lot,

Alberto

______________________________________________

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

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

**Next message:**Deepayan Sarkar: "Re: [R] how to turn axis labels for trellis/dotplot"**Previous message:**Dirk Eddelbuettel: "Re: [R] GARCH with t-innovations"**Next in thread:**Huntsinger, Reid: "RE: [R] Problem Writeing a pipe using R (stdin is consumed)"**Maybe reply:**Huntsinger, Reid: "RE: [R] Problem Writeing a pipe using R (stdin is consumed)"**Maybe reply:**Alberto Gobbi: "RE: [R] Problem Writeing a pipe using R (stdin is consumed)"**Maybe reply:**M.Kondrin: "Re: [R] Problem Writeing a pipe using R (stdin is consumed)"**Maybe reply:**Alberto Gobbi: "RE: [R] Problem Writeing a pipe using R (stdin is consumed)"**Maybe reply:**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:22 EST
*