quietly {FastUtils}R Documentation

Suppress Messages and Output

Description

This function suppresses messages and captures output from an expression.

Usage

quietly(e)

Arguments

e

An expression to evaluate.

Value

The result of the expression with messages suppressed and output captured.

Examples


quietly(print(1))

quietly({
    print(1)
    print(2)
    print(3)
})

a <- 1
quietly({
    a <- a + 1
    print(a)
})


[Package FastUtils version 0.1.1 Index]