Learn R Programming

BBmisc (version 1.10)

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)

Arguments

expr
[valid R expression] Expression.

Value

Return value of expression invisibly.

Examples

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

Run the code above in your browser using DataLab