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
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)
#> Option(s) updated :
#> "width"
#> old : 80
#> new : -20
#> "warning.length"
#> old : 1000
#> new : 2
# pointless, but shows that no messages are given
identical(options(), checkOptions(options()))
#> [1] TRUE
options(op)