<br><font size=2 face="Courier">Hello s/r users!</font>
<br>
<br><font size=2 face="Courier">I've been digging around in the s- and r-mailing lists, </font>
<br><font size=2 face="Courier">but i actually didn't find any answer to my question. </font>
<br><font size=2 face="Courier">So here it is:</font>
<br>
<br><font size=2 face="Courier">How can i realize the following:</font>
<br>
<br><font size=2 face="Courier"> myexec | R r_script > outfile.txt</font>
<br>
<br><font size=2 face="Courier">with </font>
<br><font size=2 face="Courier"> myexec some executable writing data to stdout</font>
<br><font size=2 face="Courier"> "cat data.txt" can serve as a test</font>
<br><font size=2 face="Courier"> R is supposed to be "Rcmd BATCH" or "S BATCH" in case of S+6</font>
<br><font size=2 face="Courier"> r_script a script including a read_data_form_stdin_statement</font>
<br><font size=2 face="Courier"> something like: scan(stdin()) </font>
<br>
<br><font size=2 face="Courier">In this case myexec and R use the standard pipes. </font>
<br><font size=2 face="Courier">Are there any other possibilities? something like named pipes?</font>
<br><font size=2 face="Courier">So that R could be invoked with a parameter containing the name of the pipe, </font>
<br><font size=2 face="Courier">to be used for reading data?</font>
<br>
<br><font size=2 face="Courier">I've been playing around with connections, but i can't imagine how i could </font>
<br><font size=2 face="Courier">solve the problem.</font>
<br>
<br><font size=2 face="Courier">I hope someone has any suggestions. </font>
<br>
<br><font size=2 face="Courier">Additionally, if there are any differences in that case, </font>
<br><font size=2 face="Courier">between R and S+6 on unix (linux) as well on windows, </font>
<br><font size=2 face="Courier">please give me a hint.</font>
<br>
<br><font size=2 face="Courier">sincerely,</font>
<br>
<br><font size=2 face="Courier">maciej</font>
<br>
<br>