silently | R Documentation |
silently returns a new function that will returns an error or a warning if any, or else returns nothing.
silently(.f)
.f |
the function to silence |
an error if any, a warning if any. The result is never returned.
## Not run:
silent_log <- silently(log)
silent_log(1)
silent_log("a")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.