assertive.base (version 0.0-7)

dont_stop: Run code without stopping

Description

Runs code without stopping for warnings or errors.

Usage

dont_stop(expr)

Arguments

expr

Code to execute.

Value

A list containing the results of evaluating each call in expr.

See Also

warning and stop for generating warnings and errors respectively; try and conditions for handling them.

Examples

Run this code
# NOT RUN {
dont_stop({
  warning("a warning")
  x <- 1
  stop("an error")
  y <- sqrt(exp(x + 1))
  assert_is_identical_to_true(y)
  y > 0
})
# }

Run the code above in your browser using DataCamp Workspace