Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


cooltools (version 2.4)

quiet: Suppress in-routine output

Description

Runs any routine or command while suppressing in-routine console output

Usage

quiet(x)

Value

Returns whatever the called routine returns in invisible form.

Arguments

x

routine to be called

Author

Danail Obreschkow

Examples

Run this code
# 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