Learn R Programming

frheritage (version 0.1.0)

quiet: Execute an expression completely silently

Description

This utility executes any R expression or function call and returns its value, while suppressing all printed output (cat, print), warnings, and messages.

Usage

quiet(expr)

Value

The result of evaluating expr.

Arguments

expr

An R expression or function call to execute silently.

Details

  • Useful to suppress noisy outputs from functions during package or script execution.

  • Evaluation occurs in the parent environment to access local variables.

  • Works cross-platform by redirecting capture.output to nul on Windows or /dev/null on other OS.