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

ivo welch ivo.welch at yale.edu
Fri Mar 26 20:23:46 CET 2004


hi andy:  yes, I know what it does.  My suggestion would be to have a 
different command, that is a "pure stop" without error condition (with 
its message).  A stop and an error are really two different things.

regards, /ivo


Liaw, Andy wrote:
> Please do read the documentation of the functions you are trying to use.
> The description in ?stop says:
> 
>      'stop' stops execution of the current expression and executes an
>      error action.
> 
> stop() is how error is flagged in R (and S in general).  If that's not what
> you want, try something else.  And the `something else' depends on what you
> want, which has not been described in detail.
> 
> Andy
> 

<snip>




More information about the R-help mailing list