midr.options() manages global settings specific to the midr package, such as computational solvers and color theme environments.
midr.par() manages graphical parameters for base R graphics.
Arguments
- ...
For
midr.options(): options to be defined inname = valueform. If no arguments are provided, it returns all current package options. If character strings are provided, it returns the values of those options. Formidr.par(): graphical parameters inname = valueform can be supplied as arguments.
Value
When called without arguments, midr.options() returns a named list of all current options with the midr. prefix.
When called with character strings, midr.options() returns a named list of the requested options.
When called with name = value pairs, midr.options() invisibly returns a named list of the previous values.
midr.par() returns the previous values of the changed parameters in an invisible named list.
Details
midr.options() provides an interface to R's global options() but safely scopes all parameters with a midr. prefix.
To prevent typos, it validates option names against expected prefixes:
solver.*: For registering custom least-squares solvers; e.g.,solver.TAG = FUN, whereFUN(x, y)returns a list containing at leastcoefficientsand possiblyresidualsandrank. The custom solver can be called viainterpret(method = "TAG").color.theme.*: For configuring color theme settings and registries.verbosity: For controlling message verbosity. Seeinterpret().
midr.par() wraps par() to enforce a themed aesthetic as the default, which can be further customized by the user.
