quiet {docore}R Documentation

Suppress in-routine output

Description

Runs any routine or command while supressing 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 docore version 1.0 Index]