Global options are used to set default values.

scienceverse_options(...)

sv_opts(...)

Arguments

...

One of four: (1) nothing, then returns all options as a list; (2) a name of an option element, then returns its value; (3) a name-value pair which sets the corresponding option to the new value (and returns nothing), (4) a list with option-value pairs which sets all the corresponding arguments.

Value

a list of options, values of an option, or nothing

Examples


scienceverse_options() # see all options
#> $verbose
#> [1] TRUE
#> 

scienceverse_options("quiet") # see value of scienceverse.quiet
#> NULL
if (FALSE) {
scienceverse_options(quiet = TRUE)
}