[Rd] RFC: "loop connections"

dhinds@sonic.net dhinds at sonic.net
Tue Aug 30 18:46:09 CEST 2005


Gabor Grothendieck <ggrothendieck at gmail.com> wrote:

> Just to be concrete, suppose one wants to run the following as a
> concurrent process to R.  (What is does is it implicitly sets x to
> zero and then for each line of stdin it adds the first field of the
> input to x and prints that to stdout unless the first field is
> "exit" in which case it exits.  gawk has an implicit read/process
> loop so one does not have to specify the read step.  The fflush()
> command just makes sure that output is emitted, rather than
> buffered, as it is produced.)

It seems you're just trying to reinvent fifo and/or pipe connections
for interprocess communication.  That is not directly related to the
problem I wanted to address.

-- Dave



More information about the R-devel mailing list