Skip to contents

Was the error thrown by kit_abort()?

Usage

kit_is_user_error(e)

Arguments

e

The error (a condition).

Value

TRUE or FALSE.

Examples

kit_is_user_error(tryCatch(kit_abort("x"), error = identity))
#> [1] TRUE