From tlumley@u.washington.edu  Fri May 17 22:22:05 2002
From: tlumley@u.washington.edu (Thomas Lumley)
Date: Fri, 17 May 2002 14:22:05 -0700 (PDT)
Subject: [Rd] Re: [R] options()$warn==2 and try() (PR#1570)
In-Reply-To: <200205172104.XAA22116@pubhealth.ku.dk>
Message-ID: <Pine.A41.4.44.0205171418050.95512-100000@homer11.u.washington.edu>


Even try() isn't really involved.

The problem is in src/errors.c:warningcall

It sets a flag inWarning, presumably to ensure that infinite loops of
recursive warnings don't happen, but if options(warn)==2 then an error is
signalled and the flag is not cleared until the next error.

	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Re: [R] options()$warn==2 and try() (PR#1570)
Thomas Lumley