Skip to contents

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.

Examples

get_option("arrow_format")
#> [1] "feather"