Internally used, package-specific options. All options will prioritize R options() values, and fall back to environment variables if undefined. If neither the option nor the environment variable is set, a default value is used.
Checking Option Values
Option values specific to energyRt can be
accessed by passing the package name to env.
Options
- gams_path
-
Path to the GAMS installation directory. Prefixed to the gams command when solving with a GAMS backend. If unset, gams is resolved on the session PATH.
- default:
NULL- option:
energyRt.gams_path
- envvar:
ENERGYRT_GAMS_PATH (evaluated if possible, raw string otherwise)
- gdxlib_path
-
Path to the GAMS Data Exchange (GDX) library, used to read and write *.gdx files. If unset, gams_path is used instead.
- default:
NULL- option:
energyRt.gdxlib_path
- envvar:
ENERGYRT_GDXLIB_PATH (evaluated if possible, raw string otherwise)
- python_path
-
Path to the Python installation or environment used by the Pyomo backend. Prefixed to the python command. If unset, python is resolved on the session PATH.
- default:
NULL- option:
energyRt.python_path
- envvar:
ENERGYRT_PYTHON_PATH (evaluated if possible, raw string otherwise)
- julia_path
-
Path to the Julia installation used by the JuMP backend. Prefixed to the julia command. If unset, julia is resolved on the session PATH.
- default:
NULL- option:
energyRt.julia_path
- envvar:
ENERGYRT_JULIA_PATH (evaluated if possible, raw string otherwise)
- glpk_path
-
Path to a standalone GLPK installation containing the glpsol executable. If unset, the glpsol R package's bundled binary is used when installed, otherwise glpsol is auto-detected on the session PATH -- which on Windows finds the copy bundled with Rtools.
- default:
NULL- option:
energyRt.glpk_path
- envvar:
ENERGYRT_GLPK_PATH (evaluated if possible, raw string otherwise)
- neos_email
-
Email address for NEOS Server job submission (required by NEOS). Read from the NEOS_EMAIL environment variable if the option is unset.
- default:
NULL- option:
energyRt.neos_email
- envvar:
NEOS_EMAIL (evaluated if possible, raw string otherwise)
- neos_endpoint
-
XML-RPC endpoint of the NEOS Server.
- default:
"https://neos-server.org:3333"- option:
energyRt.neos_endpoint
- envvar:
ENERGYRT_NEOS_ENDPOINT (evaluated if possible, raw string otherwise)
- solver
-
Default solver specification, used when a scenario carries none. A named list, normally one of the solver_options presets.
- default:
list(name = "glpk", lang = "GLPK")- option:
energyRt.solver
- envvar:
ENERGYRT_SOLVER (evaluated if possible, raw string otherwise)
- scenarios_path
-
Root directory for scenario folders. Scenario paths and solver working directories are built underneath it.
- default:
"scenarios/"- option:
energyRt.scenarios_path
- envvar:
ENERGYRT_SCENARIOS_PATH (evaluated if possible, raw string otherwise)
- registry_file
-
Path to the project registry CSV indexing saved models, scenarios and runs. Kept at the project root, a sibling of the scenarios/ and models/ stores, so one registry spans both.
- default:
"energyRt_registry.csv"- option:
energyRt.registry_file
- envvar:
ENERGYRT_REGISTRY_FILE (evaluated if possible, raw string otherwise)
- models_path
-
Root directory for the model store, a sibling of the scenarios/ store. save_model() writes one folder per model name underneath it, updated in place; the content hash lives in the entry's model.yml. Scenarios saved with the default embed_model = NULL store their model here and reference it.
- default:
"models/"- option:
energyRt.models_path
- envvar:
ENERGYRT_MODELS_PATH (evaluated if possible, raw string otherwise)
- repositories_path
-
Root directory for the repository store. save_repository() writes one folder per repository name underneath it, updated in place; the content hash lives in the entry's repository.yml.
- default:
"repositories/"- option:
energyRt.repositories_path
- envvar:
ENERGYRT_REPOSITORIES_PATH (evaluated if possible, raw string otherwise)
- datasets_path
-
Root directory for the dataset store. save_dataset() writes one folder per dataset name underneath it, updated in place; the content hash lives in the entry's dataset.yml.
- default:
"datasets/"- option:
energyRt.datasets_path
- envvar:
ENERGYRT_DATASETS_PATH (evaluated if possible, raw string otherwise)
- log_file
-
Optional operation-log CSV. Empty (default) = logging off; a path makes interpolate_model()/solve_scenario()/solve_recursive() append one line per operation. Read it back with read_log().
- default:
""- option:
energyRt.log_file
- envvar:
ENERGYRT_LOG_FILE (evaluated if possible, raw string otherwise)
- profile_dir
-
Directory for the interpolation profile log (interp_runs.csv, interp_stages.csv, interp_maps.csv, interp_params.csv -- per-run timing and memory tables, appended after every interpolation). Empty (default) = fall back to the operation log's directory, then to html
- default:
""- option:
energyRt.profile_dir
- envvar:
ENERGYRT_PROFILE_DIR (evaluated if possible, raw string otherwise)
/logs/ when a project registry exists; no sink = no files written. - reports_path
-
Default directory for rendered reports of IN-MEMORY objects (treated as temporary output). Reports of saved objects land inside the owning folder (html
- default:
"reports/"- option:
energyRt.reports_path
- envvar:
ENERGYRT_REPORTS_PATH (evaluated if possible, raw string otherwise)
/reports/, html /reports/) instead. - levcost_cache_path
-
Default directory for cached levcost results of IN-MEMORY objects (treated as temporary). Results for saved objects are cached inside the owning folder (html
- default:
"levcosts/"- option:
energyRt.levcost_cache_path
- envvar:
ENERGYRT_LEVCOST_CACHE_PATH (evaluated if possible, raw string otherwise)
/levcost/) instead. - path_builders
-
Named list of user functions overriding the built-in folder-name derivations (session-local; set with set_path_builder()). Hookable kinds: scenario_dir, store_entry, run_label, slug — see ?path_builders for the contracts.
- default:
list()- option:
energyRt.path_builders
- envvar:
ENERGYRT_PATH_BUILDERS (evaluated if possible, raw string otherwise)
- storage_format
-
On-disk table storage format: 'feather' (IPC), 'parquet', or 'csv'; 'arrow' and 'ipc' are aliases for feather. Both support lazy filtered reads. Size depends far more on DICTIONARY ENCODING than on the container: parquet dictionary-encodes repeated strings itself, feather only if the caller passes factors. Measured on a 543k-row table with zstd-15: plain feather 11.8 MB, parquet 1.10 MB either way, feather with factor columns 1.03 MB and 4.5x faster to read.
- default:
"feather"- option:
energyRt.storage_format
- envvar:
ENERGYRT_STORAGE_FORMAT (evaluated if possible, raw string otherwise)
- storage_compression
-
Storage compression codec: 'zstd', 'lz4', or 'uncompressed'.
- default:
"zstd"- option:
energyRt.storage_compression
- envvar:
ENERGYRT_STORAGE_COMPRESSION (evaluated if possible, raw string otherwise)
- storage_compression_level
-
Storage compression level (codec-dependent; ZSTD supports 1-22).
- default:
15L- option:
energyRt.storage_compression_level
- envvar:
ENERGYRT_STORAGE_COMPRESSION_LEVEL (evaluated if possible, raw string otherwise)
- exchange_format
-
Data-exchange format for the JuMP/Pyomo solvers: 'feather' (IPC), 'parquet', or 'csv'. Julia's Arrow.jl reads IPC only. A solver's export_format/import_format overrides this per solve.
- default:
"feather"- option:
energyRt.exchange_format
- envvar:
ENERGYRT_EXCHANGE_FORMAT (evaluated if possible, raw string otherwise)
- exchange_compression
-
Exchange compression codec: 'zstd', 'lz4', or 'uncompressed'. Exchange files are written and read within the same solve, so the default trades size for speed.
- default:
"lz4"- option:
energyRt.exchange_compression
- envvar:
ENERGYRT_EXCHANGE_COMPRESSION (evaluated if possible, raw string otherwise)
- exchange_compression_level
-
Exchange compression level (codec-dependent; ZSTD supports 1-22). Ignored for lz4.
- default:
15L- option:
energyRt.exchange_compression_level
- envvar:
ENERGYRT_EXCHANGE_COMPRESSION_LEVEL (evaluated if possible, raw string otherwise)
- fx_equ
-
Write an fx bound as one equality row rather than a matched pair of lo/up rows.
- default:
TRUE- option:
energyRt.fx_equ
- envvar:
ENERGYRT_FX_EQU (evaluated if possible, raw string otherwise)
- parent_levels
-
Keep parameters at a parent geoframe or timeframe alongside the finest level, so a coarse declaration stays readable after interpolation.
- default:
FALSE- option:
energyRt.parent_levels
- envvar:
ENERGYRT_PARENT_LEVELS (evaluated if possible, raw string otherwise)
- bridge_storage_gaps
-
May a storage level be carried across a gap a sampled calendar leaves in the year? FALSE (default) closes each contiguous block of kept timeslices onto itself, so nothing crosses a gap; TRUE chains the blocks as if they were adjacent. A full calendar has no gaps and is unaffected either way.
- default:
FALSE- option:
energyRt.bridge_storage_gaps
- envvar:
ENERGYRT_BRIDGE_STORAGE_GAPS (evaluated if possible, raw string otherwise)
- on_missing_input
-
What interpolation does when a process names an input commodity the model does not declare: "stop", "warn" or "ignore".
- default:
"stop"- option:
energyRt.on_missing_input
- envvar:
ENERGYRT_ON_MISSING_INPUT (evaluated if possible, raw string otherwise)
- threads
-
Threads for the data.table operations interpolation runs. 0 means data.table's own default, which is half the physical cores.
- default:
0L- option:
energyRt.threads
- envvar:
ENERGYRT_THREADS (evaluated if possible, raw string otherwise)
- map_rules
-
Build mapping parameters from the declared rules rather than the hand-written builders.
- default:
TRUE- option:
energyRt.map_rules
- envvar:
ENERGYRT_MAP_RULES (evaluated if possible, raw string otherwise)
- map_rules_verify
-
Diagnostic: build each mapping BOTH ways and compare, which is slow and is for checking a rule change rather than for normal use.
- default:
FALSE- option:
energyRt.map_rules_verify
- envvar:
ENERGYRT_MAP_RULES_VERIFY (evaluated if possible, raw string otherwise)
- base_maps
-
Diagnostic: keep the mapping tables a base interpolation produced, so a derived scenario's maps can be compared against them.
- default:
FALSE- option:
energyRt.base_maps
- envvar:
ENERGYRT_BASE_MAPS (evaluated if possible, raw string otherwise)
- base_maps_verify
-
Diagnostic: compare a derived scenario's maps against the base's.
- default:
FALSE- option:
energyRt.base_maps_verify
- envvar:
ENERGYRT_BASE_MAPS_VERIFY (evaluated if possible, raw string otherwise)
- model_checks_stop
-
Treat a model consistency check as an error instead of a warning. A declaration that cannot bind is a reason to warn, not a reason to refuse to build, so this is off by default.
- default:
FALSE- option:
energyRt.model_checks_stop
- envvar:
ENERGYRT_MODEL_CHECKS_STOP (evaluated if possible, raw string otherwise)
- mm_keep_wildcards
-
Keep wildcard (all-NA) key rows when importing a scenario into the matrix backend, instead of expanding them to their members.
- default:
FALSE- option:
energyRt.mm_keep_wildcards
- envvar:
ENERGYRT_MM_KEEP_WILDCARDS (evaluated if possible, raw string otherwise)
- save_mode
-
How a saved scenario carries its model: "ref" references the model in its own store, "embed" writes a copy inside the scenario.
- default:
"ref"- option:
energyRt.save_mode
- envvar:
ENERGYRT_SAVE_MODE (evaluated if possible, raw string otherwise)
- ondisk_min_rows
-
Smallest table written to its own file; a shorter one stays in scen.RData.
- default:
1e+05- option:
energyRt.ondisk_min_rows
- envvar:
ENERGYRT_ONDISK_MIN_ROWS (evaluated if possible, raw string otherwise)
- param_ref_min_rows
-
Smallest parameter table that is referenced from a base scenario rather than copied into a derived one.
- default:
1e+06- option:
energyRt.param_ref_min_rows
- envvar:
ENERGYRT_PARAM_REF_MIN_ROWS (evaluated if possible, raw string otherwise)
- scen_file_mb_limit
-
Size at which the saved scenario file (scen.RData) is reported as carrying tables that belong in the stores. Megabytes.
- default:
256- option:
energyRt.scen_file_mb_limit
- envvar:
ENERGYRT_SCEN_FILE_MB_LIMIT (evaluated if possible, raw string otherwise)
- lazy_hash
-
Hash a stored object only when its size or timestamp changed. FALSE hashes on every save.
- default:
TRUE- option:
energyRt.lazy_hash
- envvar:
ENERGYRT_LAZY_HASH (evaluated if possible, raw string otherwise)
- mem_gc_full
-
Run a full garbage collection before each memory reading in the operation log. Accurate and slow; the default reads the quick probe.
- default:
FALSE- option:
energyRt.mem_gc_full
- envvar:
ENERGYRT_MEM_GC_FULL (evaluated if possible, raw string otherwise)
- project_root
-
Directory a relative store path is rooted at. Defaults to a per-session directory under tempdir(), so nothing is written outside the session unless open_project() or a set_*_path() call says where.
- default:
- option:
energyRt.project_root
- envvar:
ENERGYRT_PROJECT_ROOT (evaluated if possible, raw string otherwise)
- verbose
-
Verbosity level, logical or integer: 0/FALSE silent, 1/TRUE reports each ACTION once -- what was written, loaded or solved, and where -- and 2 and above add per-object and per-parameter detail. Test with isVerbose(level). This option is the single control: a function's own verbose argument defaults to it, and passing one overrides it for that call.
- default:
1- option:
energyRt.verbose
- envvar:
ENERGYRT_VERBOSE (evaluated if possible, raw string otherwise)
- debug
-
Debug level, in the same 0/1/2 form as verbose. Enables internal consistency warnings that are silent in normal use. Test with isDebug(level).
- default:
0- option:
energyRt.debug
- envvar:
ENERGYRT_DEBUG (evaluated if possible, raw string otherwise)
- progress_bar
-
Whether long-running operations display a progress bar. Set through show_progress_bar() / set_progress_bar().
- default:
TRUE- option:
energyRt.progress_bar
- envvar:
ENERGYRT_PROGRESS_BAR (evaluated if possible, raw string otherwise)
