quiet {oeli} | R Documentation |
Silence R code
Description
This function silences warnings, messages and any cat()
or print()
output from R expressions or functions.
Usage
quiet(x, print_cat = TRUE, message = TRUE, warning = TRUE)
Arguments
x |
[ |
print_cat |
[ |
message |
[ |
warning |
[ |
Value
Invisibly the expression x
.
References
This function is a modified version of quiet
.
See Also
Other function helpers:
do.call_timed()
,
function_arguments()
,
function_body()
,
function_defaults()
,
timed()
,
try_silent()
,
variable_name()
Examples
f <- function() {
warning("warning")
message("message")
cat("cat")
print("print")
}
quiet(f())
[Package oeli version 0.6.0 Index]