Generic accessors for any option in the energyRt registry. See
?energyRt-options for the full list, or en_config_show() to print every
option together with the source its current value came from.
Each option can be set three ways, in decreasing priority: the R option
(options(en.<name> = )), the environment variable
(ENERGYRT_<NAME>), or the configuration file (see en_config_write()).
Usage
set_option(name, value)
get_option(name, default = NULL)
Arguments
- name
character, the option name without the en. prefix,
e.g. "gams_path".
- value
the new value.
- default
value returned if the option is not defined.
Value
get_option() the option value; set_option() the previous value,
invisibly.
See also
Other options:
en_config_path(),
en_config_show(),
get_default_solver(),
get_exchange_format(),
get_storage_format(),
isVerbose(),
set_log_file(),
set_path_builder(),
set_registry_file(),
set_reports_path(),
set_scenarios_path(),
set_solver_path()
Examples
get_option("storage_format")
#> [1] "feather"