[R] Having R (not the OS) redirect stderr() to stdout()

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Nov 12 18:40:23 CET 2008


See ?sink (and heed the warnings).

Depending on what the connections are, the stdout and stderr may or may 
not interleave correctly.

On Wed, 12 Nov 2008, David Dahl wrote:

> R users,
>
> I am aware that R can be invoked such that the operating system
> redirects standard error (stderr) to standard output (stdout), but I
> want to have R itself (not the OS) redirect the connection given by
> stderr() to connection given by stdout().  Is that possible?  Perhaps
> equivalently, can I make all error messages and warnings go to
> stdout() instead of stderr()?  Any suggestions?  Thanks!
>
> -- David
>
> -- 
> David B. Dahl
> Assistant Professor
> Department of Statistics
> Texas A&M University
>
> Web site: http://www.stat.tamu.edu/~dahl
> E-mail address: dahl at stat.tamu.edu
> Main office: 979-845-3141
> Fax: 979-845-3144
> --
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

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