
Last chance! 50% off unlimited learning
Sale ends in
Runs any routine or command while suppressing in-routine console output
quiet(x)
Returns whatever the called routine returns in invisible form.
routine to be called
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)
Run the code above in your browser using DataLab