quiet {cooltools} | R Documentation |
Suppress in-routine output
Description
Runs any routine or command while suppressing in-routine console output
Usage
quiet(x)
Arguments
x |
routine to be called |
Value
Returns whatever the called routine returns in invisible form.
Author(s)
Danail Obreschkow
Examples
# 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)
[Package cooltools version 2.4 Index]