quietly: Perform an action quietly

View source: R/quietly.R

quietlyR Documentation

Perform an action quietly

Description

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

  • help("conditions")

  • sink() and nullfile().

  • utils::capture.output().

  • https://stackoverflow.com/questions/2723034/

  • https://stackoverflow.com/questions/18730491/

  • https://stackoverflow.com/questions/25320381/

  • https://stackoverflow.com/questions/4948361/

Examples

quietly({
    message("hello world")
    object <- c("aaa", "bbb")
})
print(object)

acidgenomics/r-goalie documentation built on Jan. 12, 2024, 4:15 a.m.