Backport for new argument 'classes'.
See the original description in base::suppressWarnings
/base::suppressMessages
.
1 2 3 | suppressWarnings(expr, classes = "warning")
suppressMessages(expr, classes = "message")
|
1 2 3 4 | # 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.