quiet | R Documentation |
Executes routines and command lines and load packages while suppressing the console output.
quiet(x)
x |
routine to be called |
Returns whatever the called routine returns in invisible form.
Danail Obreschkow
# Test function
test = function(x) {
cat('This routine is likes to talk a lot!\n')
return(x^2)
}
# Standard call call:
y = test(5)
print(y)
# Quiet call:
y = quiet(test(6))
print(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.