| RuntimeContext | R Documentation |
Captures reproducibility and backend settings. A context stored on an Engine
configures direct Engine$run() calls. When supplied explicitly to
run_cohort(), it configures the cohort and takes precedence over scalar
seed/backend/worker controls; its replicate_id must be NULL because
cohort replication is identified by sim_id.
RuntimeContext(
seed = NULL,
replicate_id = NULL,
backend = "none",
n_workers = NULL
)
seed |
Optional integer scalar; top-level seed. NULL = unseeded. |
replicate_id |
Optional integer scalar; stochastic replicate index for
a direct Engine run. Cohorts use |
backend |
Character scalar; one of |
n_workers |
Optional integer; number of parallel workers. |
The public reproducibility contract is:
seed + draw_id + replicate_id + entity_id = deterministic output.
Internal stream allocation (stream_id) is set by the run harness and
must not be set by users directly.
A list of class "RuntimeContext".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.