[R] catch error/warning message in a loop
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Jun 2 21:45:08 CEST 2003
On Mon, 2 Jun 2003, array chip wrote:
> cat can only catch the error message promptly, but
> seems not able to catch the warning message promptly.
> Can anyone point out how i can catch the warning
> message in a loop?
options(warn=1) or = 2
--
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