Skip to contents

Suppress all warnings, messages, and console output.

Usage

quietly(expr)

Arguments

expr

Expression to evaluate.

Value

Invisible NULL.

Note

Updated 2023-11-27.

See also

Examples

quietly({
    message("hello world")
    object <- c("aaa", "bbb")
})
print(object)
#> [1] "aaa" "bbb"