A wrapper around silently and attempt

silent_attempt(...)

Arguments

...

the expression to evaluate

Value

an error if any, a warning if any.

Examples

if (FALSE) { # \dontrun{
silent_attempt(warn("nop!"))
} # }