surely: surely

Description Usage Arguments Value Examples

Description

Wrap a function in a try

Usage

1
surely(.f)

Arguments

.f

the function to wrap

Value

an error if any, a warning if any, the result if any

Examples

1
2
3
4
5
6
## Not run: 
sure_log <- surely(log)
sure_log(1)
sure_log("a")

## End(Not run)

attempt documentation built on May 4, 2020, 1:05 a.m.