Skip to contents

Executes an expression while suppressing all output, including messages, warnings, and printed output.

Usage

suppressALL(expr)

Arguments

expr

An R expression to evaluate.

Value

The (invisible) result of the evaluated expression.

Examples

if (FALSE) { # \dontrun{
suppressALL({
    warning("This is suppressed")
    message("Also suppressed")
    print("This too")
})
} # }