[R] CGI output

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Apr 11 12:57:14 CEST 2003


On Fri, 11 Apr 2003, Stevan Goode wrote:

> I'm trying to interface an R program output into a PHP program. What I'm 
> after at the moment is to know if there's a way to redirect the output 
> from the R command line program to STDOUT instead of into a file.

Output goes to stdout by default.  (Note: the upcoming 1.7.0 sends errors
to stderr and all other output to stdout by default.)  There are quite a
few examples in the R sources of running R from Perl and capturing the
output on stdout (although these are complicated by deficiencies of
Windows Perl on Win9X).

You may need to tell us more about what you are trying to do.

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