| quiet | R Documentation |
Useful if you want to suppress cat, print, message and warning. You can choose what to mute. Default all four methods are muted.
quiet(x, print_cat = TRUE, message = TRUE, warning = TRUE)
x |
function or expression or value assignment expression |
print_cat |
bool, mute 'print' and 'cat'? |
message |
bool, mute 'messages'? |
warning |
bool, mute 'warnings'? |
If your original functions has a return, it will return in 'invisible(x)'
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.