muststop {SoDA} | R Documentation |
This function tests the assertion that there is an error in the expression and therefore that evaluating it will generate an error condition.
muststop(expr, silent = TRUE)
expr |
Any R expression |
silent |
if |
If an error is generated, the function returns the corresponding condition
object; if not, then muststop()
will itself generate an error.
muststop(sqrt("abc"))