cnd_type {rlang} | R Documentation |
Use cnd_type()
to check what type a condition is.
cnd_type(cnd)
cnd |
A condition object. |
A string, either "condition"
, "message"
, "warning"
,
"error"
or "interrupt"
.
cnd_type(catch_cnd(abort("Abort!")))
cnd_type(catch_cnd(interrupt()))