quiet {spsUtil} | R Documentation |
Suppress cat, print, message and warning
Description
Useful if you want to suppress cat, print, message and warning. You can choose what to mute. Default all four methods are muted.
Usage
quiet(x, print_cat = TRUE, message = TRUE, warning = TRUE)
Arguments
x |
function or expression or value assignment expression |
print_cat |
bool, mute |
message |
bool, mute |
warning |
bool, mute |
Value
If your original functions has a return, it will return in
invisible(x)
Examples
quiet(warning(123))
quiet(message(123))
quiet(print(123))
quiet(cat(123))
quiet(warning(123), warning = FALSE)
quiet(message(123), message = FALSE)
quiet(print(123), print_cat = FALSE)
quiet(cat(123), print_cat = FALSE)
[Package spsUtil version 0.2.2 Index]