Test for an expression that should result in an error
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"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.