silently: Silently

Description Usage Arguments Value Examples

Description

silently returns a new function that will returns an error or a warning if any, or else returns nothing.

Usage

1

Arguments

.f

the function to silence

Value

an error if any, a warning if any. The result is never returned.

Examples

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

## End(Not run)

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