Run code without stopping
Runs code without stopping for warnings or errors.
dont_stop(expr)
expr |
Code to execute. |
A list containing the results of evaluating each call in expr.
This function is dangerous, since it overrides warnings and errors. Its intended use is for documenting examples of warnings and errors.
warning and stop for
generating warnings and errors respectively; try and
conditions for handling them.
dont_stop({
warning("a warning")
x <- 1
stop("an error")
y <- sqrt(exp(x + 1))
assert_is_identical_to_true(y)
y > 0
})Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.