Skip to content

CGI output

2 messages · Stevan Goode, Brian Ripley

#
Hi all,

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.

If anyone can help me out on this I'd be grateful.

Thanks,

Steve
#
On Fri, 11 Apr 2003, Stevan Goode wrote:

            
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.