suppress_mw | R Documentation |
Run expression wrapped in both
suppressMessages()
and
suppressWarnings()
.
suppress_mw(expr)
expr |
Any expression to run within |
suppressWarnings(suppressMessages(expr))
The output of expr
.
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
# Attach packages
library(xpectr)
fn <- function(a, b){
warning("a warning")
message("a message")
a + b
}
suppress_mw(fn(1, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.