quiet: Suppress in-routine output

Description Usage Arguments Value Author(s) Examples

View source: R/quiet.R

Description

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

Usage

1
quiet(x)

Arguments

x

routine to be called

Value

Returns whatever the called routine returns in invisible form.

Author(s)

Danail Obreschkow

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# 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)

docore documentation built on Feb. 1, 2022, 5:06 p.m.

Related to quiet in docore...