Learn R Programming

assertive (version 0.2-6)

dont_stop: Run code without stopping

Description

Runs code without stopping, warnings and errors are only printed.

Usage

dont_stop(...)

Arguments

...
Passed to tryCatch.

Value

  • The expression that was passed in is run.

Examples

Run this code
dont_stop(warning("!!!"))
dont_stop(stop("!!!"))
f <- function() g()
g <- function() stop("!!!")
dont_stop(f())

Run the code above in your browser using DataLab