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

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed, 12 Nov 2008 17:40:23 +0000 (GMT)

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

______________________________________________
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.
Received on Wed 12 Nov 2008 - 17:51:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 12 Nov 2008 - 18:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive