quiet | R Documentation |
This function silences warnings, messages and any cat()
or print()
output from R expressions or functions.
quiet(x, print_cat = TRUE, message = TRUE, warning = TRUE)
x |
[ |
print_cat |
[ |
message |
[ |
warning |
[ |
Invisibly the expression x
.
This function is a modified version of quiet
.
Other function helpers:
do.call_timed()
,
function_arguments()
,
function_body()
,
function_defaults()
,
timed()
,
try_silent()
,
variable_name()
f <- function() {
warning("warning")
message("message")
cat("cat")
print("print")
}
quiet(f())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.