suppressWarnings | R Documentation |
Backport for new argument 'classes'.
See the original description in base::suppressWarnings
/base::suppressMessages
.
suppressWarnings(expr, classes = "warning") suppressMessages(expr, classes = "message")
# get function from namespace instead of possibly getting # implementation shipped with recent R versions: bp_suppressWarnings = getFromNamespace("suppressWarnings", "backports") bp_suppressWarnings(warningCondition("warning", class = "testWarning"), "testWarning")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.