assert() is a drop-in replacement for
supporting more informative error messages.
assert(..., msg = NULL, traceback = getOption("acid.traceback", default
Any number of R expressions that return
logical(1), each of
which should evaluate to
TRUE. Rather than combining expressions with
&&, separate them by commas so that better error messages can be
Custom message to return on the event of any check failure.
Include traceback in error message.
traceback() for details.
rlang::entrace() also works nicely and can be set in
TRUE on success, error on failure.
If any of the expressions defined in
... are not all
stop is called, producing an error message indicating the
first expression which was not