scr_verbose: Switch progress messages on or off

View source: R/utils.R

scr_verboseR Documentation

Switch progress messages on or off

Description

Large tables take tens of minutes, and the pipeline reports every stage as it runs: stage name, input and output counts, elapsed time. Messages go through message() as single lines, with no progress bar that redraws itself, so that a scheduled job (Rscript in batch) produces a readable log. suppressMessages() works too; this function exists to switch them off persistently, without wrapping every call. The verbose key of scr_config() has the same effect per run.

Usage

scr_verbose(on = NULL)

Arguments

on

TRUE to switch on, FALSE to switch off, NULL (default) to query the current state only.

Value

The verbosity state in force before the call, invisibly, so that ⁠old <- scr_verbose(FALSE); ...; scr_verbose(old)⁠ restores it.

See Also

Other configuration: scr_config(), scr_config_keys(), scr_presets()

Examples

old <- scr_verbose(FALSE)   # silence, keeping the previous state
scr_verbose(old)            # restore
scr_verbose()               # query

scorecraft documentation built on Dec. 6, 2026, 1:09 a.m.