checkOptions: Check options

View source: R/options.R

checkOptionsR Documentation

Check options

Description

For each name in x checks the current option value and reports if there is a difference in a message. This does not change the options

Usage

checkOptions(x)

Arguments

x

A named list of new options

Details

Checks and reports on options

Value

Invisible, a list of the current options from options()

Examples

op <- options()

x <- list(width = -20, warning.length = 2, probably_not_a_real_option = 2)
checkOptions(x)
# pointless, but shows that no messages are given
identical(options(), checkOptions(options()))

options(op)

mark documentation built on May 29, 2024, 5:13 a.m.