Examples for 'rlang::catch_cnd'


Catch a condition

Aliases: catch_cnd

Keywords:

### ** Examples

catch_cnd(10)
NULL
catch_cnd(abort("an error"))
<error/rlang_error>
Error:
! an error
---
Backtrace:
▆
catch_cnd(signal("my_condition", message = "a condition"))
<my_condition: a condition>

[Package rlang version 1.1.4 Index]