surely: surely

View source: R/adverbs.R

surelyR Documentation

surely

Description

Wrap a function in a try

Usage

surely(.f)

Arguments

.f

the function to wrap

Value

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

Examples

## Not run: 
sure_log <- surely(log)
sure_log(1)
sure_log("a")

## End(Not run)


ColinFay/trycatchthis documentation built on Aug. 26, 2024, 10:47 p.m.