[R] Scripting with an external editor

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Sun Mar 30 20:56:20 CEST 2003


On Sun, 30 Mar 2003, Jim Lemon wrote:

> If my trawling through the "connections" code is correct, a pipe 
> connection is designed to read to EOF before returning its input to the 
> parsing function. Blocking is not an option with this type of connection. 

Not so: it is parse(file=) that is designed to read to EOF.  pipe() does 
nothing, but reading from a pipe reads connections however much is asked 
for.  If you want non-blocking, use a socket or fifo.

> As I do not know how to spoof an EOF on an open pipe, it looks like I 
> would have to rewrite 3 or 4 fairly low level functions to return input on 
> EOL.
>
> My impression is that this is the wrong way to go about this. After all, I 
> am sure that something similar is already being done using the present 
> connection functions. Any suggestions as to where else I might look would 
> be greatly appreciated.

I have already sent you such a reply, on Monday 24th.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list