Skip to contents

Sets session-wide defaults for checktor() behavior. Subsequent calls to checktor() (and helpers that delegate to it) pick up these defaults via getOption().

Usage

configure_doctor(verbose_default = TRUE, progress_default = TRUE, color = TRUE)

Arguments

verbose_default

Logical. Default verbosity for checktor().

progress_default

Logical. Default progress-bar setting.

color

Logical. Whether cli should emit ANSI color. Sets cli.num_colors via options().

Value

Invisibly returns the previous values of the changed options, so the call can be reversed with options(.).

Examples

# Save defaults so we can restore them after the example runs
old <- options(checktor.verbose = NULL, checktor.progress = NULL)
on.exit(options(old), add = TRUE)

configure_doctor(verbose_default = FALSE)
#> ✔ Package doctor configuration updated
getOption("checktor.verbose")
#> [1] FALSE