BBmisc (version 1.13)

suppressAll: Suppresses all output except for errors.

Description

Evaluates an expression and suppresses all output except for errors, meaning: prints, messages, warnings and package startup messages.

Usage

suppressAll(expr)

Value

Return value of expression invisibly.

Arguments

expr

[valid R expression]
Expression.

Examples

Run this code
suppressAll({
  print("foo")
  message("foo")
  warning("foo")
})

Run the code above in your browser using DataLab