[R] stop() vs. error() ?
Liaw, Andy
andy_liaw at merck.com
Fri Mar 26 16:25:09 CET 2004
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
> From: ivo welch
>
> Why does stop("we are done") print
> "Error in eval.with.vis(expr, envir, enclos) :" ?
> It would seem to me that a plain stop() is not an error, and that it
> would make more sense to have an error() function that is
> different from
> a stop(). Is there a rationale here that I am missing?
>
> sincerely, /iaw
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>
------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments,...{{dropped}}
More information about the R-help
mailing list