[R] interaction of options(error=) and try()

Luke Tierney luke at stat.uiowa.edu
Tue Jan 7 20:06:03 CET 2003

On Tue, 7 Jan 2003, Vadim Ogranovich wrote:

> Dear R-Users,
> I am somewhat confused by the interplay between options(error=) and try(). I
> set my error handler to an expression that dumps the frames and quits. Yet,
> I thought that this handler would NOT be invoked if an error happens within
> try(). Apparently it was. Here is the code that I ran as R BATCH:

The current implementation of try does not override the error handler
setting provided in options.  This will change when a more
sophisticated error handling mechanism currently under development is
released.  For now I thnk your only option is to disable your error
handler around the try.


Luke Tierney
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
   Actuarial Science
241 Schaeffer Hall                  email:      luke at stat.uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu

More information about the R-help mailing list