View source: R/Auxiliar_functions.R
quiet | R Documentation |
Suppress function messages and Concatenate and Print (cat)
quiet(..., messages = FALSE, cat = FALSE)
... |
the functional expression to be evaluated |
messages |
logical; suppress all messages? |
cat |
logical; suppress all concatenate and print calls from |
RDRR <https://rdrr.io/cran/SimDesign/src/R/util.R> (line)
myfun <- function(x){
message('This function is rather chatty')
cat("It even prints in different output forms!\n")
message('And even at different....')
cat("...times!\n")
x
}
out <- myfun(1)
out
# tell the function to shhhh
out <- quiet(myfun(1))
out
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.