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

# configure_doctor() returns the options it replaced
old <- configure_doctor(verbose_default = FALSE)
#> ✔ Package doctor configuration updated
getOption("checktor.verbose")
#> [1] FALSE

# Put them back
options(old)