Overrides let you change config values on the fly at compose time without editing YAML files. In this vignette, we use one base config file for every example:
A copy of this config file is distributed with the
hydraR package. It is stored in a local directory that we
can identify with system.file().
To avoid repeating the full config directory path and config name
every time we call compose(), we set global options once at
the start.
library(hydraR)
options(
hydraR.compose.config_path = system.file("examples", package = "hydraR"),
hydraR.compose.config_name = "minimal"
)Add: +key=value
## author:
## given: Vincent
## family: Arel-Bundock
## numeric: 2
## experiment:
## name: baseline
## seed: 42
Upsert: ++key=value
Upsert means update a value if the key exists, or insert it if the key does not exist.
## author:
## given: Vincent
## family: Arel-Bundock
## numeric: 5
## experiment:
## tag: trial