Prints current package settings when called with no arguments, or updates
one or more settings when arguments are supplied. Settings persist for the
duration of the R session and can be set at startup via
.Rprofile (e.g. options(SAMSE.nSim = 100)).
Arguments
- ...
Named arguments corresponding to one or more settings to update.
Unrecognised names trigger an error. Valid settings are:
Value
Invisibly returns a named list of all current settings after any
updates are applied. When called with no arguments, the current settings
are also printed to the console.
Examples
# Print current settings
Settings()
#>
#> ── `SAMSE` Settings ────────────────────────────────────────────────────────────
#> nSim: 50
#> pYear: 30
# Update one setting
Settings(nSim = 100)
# Update multiple settings at once
Settings(nSim = 200, pYear = 50)