R-alpha: options [--no-*-file] AND --dont-stop-on-error-if-batch

Thomas Lumley thomas@biostat.washington.edu
Tue, 12 Aug 1997 09:35:46 -0700 (PDT)

On Tue, 12 Aug 1997, Martin Maechler wrote:
> As Thomas Lumley has noted before, the behavior in 'batch mode' has changed;
> namely "Termination upon 'error'".
> I think this is THE good default behavior for "batch mode".
> However
>  1) for several purposes I'd very much want an option to change this
>     default behavior.
Hear, hear!

> I think it'd be very neat then if
> 	options(error.stop = FALSE)
> actually translated all errors [stop(.)] to warnings [warning()].

I'm not convinced.  Being able to make warnings fatal is a good option,
but being able to continue after errors may make no sense.   How do you
continue after subscript out of bounds, or argument missing with no
default, or memory exhausted or ...

You may well need to jump back to the top level before it makes sense to
continue.  On the other hand, once at the top level it is certainly
possible to proceed, and so there should be an option to do it.

Thomas Lumley
Biostatistics		: "Never attribute to malice what  :
Uni of Washington	:  can be adequately explained by  :
Box 357232		:  incompetence" - Hanlon's Razor  :
Seattle WA 98195-7232	:				   :

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