[R] about get stdout from other program

Brian D Ripley ripley at stats.ox.ac.uk
Fri Apr 1 05:41:48 CEST 2005


On Fri, 1 Apr 2005, Michael S wrote:

> if I want to use stdout from other language as my R program input ,which is
> the best way for design the API,using Pipe function or produce a temporary
> file,using scan function to read the file ?

A file for portability, since pipes do not work well on Windows 9x.

A pipe or fifo if you want to wait on output from another program.

-- 
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