[R] stop() vs. error() ?

ivo welch ivo.welch at yale.edu
Fri Mar 26 22:56:38 CET 2004


Hi jim:  ahhh, but then the error messages are off for "real errors" 
that occur later.

Hi pierre: a return() in a (2nd-level) function can be different from a 
stop().  one could argue about whether it should be possible to stop() 
in a function of course, without it being an error().

regards,

/iaw


James MacDonald wrote:
> And a closer examination of the help page would lead you to this:
> 
> options(show.error.messages=FALSE)
> stop()
> 
> which is what I believe you want....
> 
> Jim


also From Pierre Kleiber:

The thing is that functions don't really stop... they return.  So what 
you want is return()
  Cheers, Pierre




More information about the R-help mailing list