[R] recover should send messages to stderr, not stdout

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed May 12 08:21:28 CEST 2004


recover() is a pure R function, so you can very easily edit it to meet
your requirements.  You could also submit a patched version for
consideration after testing.

Note that some of us consider recover() to be designed for 
interactive-only use, and use something like

    options(error=expression(if(interactive()) recover() else dump.calls()))


On Tue, 11 May 2004, Vadim Ogranovich wrote:

> recover() sends all its messages, which I consider to be error messages,
> to stdout. I think they more properly belong to stderr.
>  
> This is an important difference for those of us who use R in batch mode
> to generate ASCII files.

Only to the subset who believe that recover() is a useful error option in 
non-interactive use.

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