fatal_error {precondition}R Documentation

Signal a fatal error (and optionally terminate the program execution)

Description

fatal_error() is equivalent to the base function base::stop(), except it is intended to signal critical errors where recovery is impossible or unfeasible.

Fatal errors are signaled via rlang::abort() with the class precondition/fatal_error. The option fatal_error_action controls the behavior of the fatal errors.

Usage

fatal_error(bullets, ...)

Arguments

bullets

a character vector containing the error message, can be formatted in the style of rlang::format_error_bullets()

...

reserved for future use

Details

fatal_error() is used in sanity_check() to report critical assertion failures.


[Package precondition version 0.1.0 Index]