[R] printing to stderr

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Nov 10 14:06:51 CET 2004

On Wed, 10 Nov 2004 Arne.Muller at aventis.com wrote:

> is it possible to configure the print function to print to stderr?

No, but where standard output goes is controlled by sink(), so you can 
achieve the same effect.  R internally has no idea what output comes from 
print() (which is not just one function but hundreds of methods).

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