params and metadata default to merging into the node's existing values
via utils::modifyList, so bg_update_node(handle, id, params = list(stan_file = f))
updates just stan_file and preserves chains, seed, etc. Pass
replace = TRUE to replace the existing lists.
Usage
bg_update_node(
project,
node_id,
label = NULL,
params = NULL,
metadata = NULL,
replace = FALSE
)Arguments
- project
A
bg_handle.- node_id
The node ID to update.
- label
Optional new label.
- params
Optional new parameters (merged by default).
- metadata
Optional new metadata (merged by default).
- replace
Logical scalar, default
FALSE. WhenTRUE,paramsandmetadataREPLACE the existing lists wholesale instead of merging.