Used in examples to illustrate when errors should occur.

should_stop(expr)

Arguments

expr

code to evaluate.

Examples

should_stop(stop("Hi!")) should_stop(should_stop("Hi!"))
#> [1] "Hi!"