| getReproConfig | R Documentation |
Returns a configuration list that captures effective runtime settings from the last completed simulation.
debug |
Logical. If TRUE, includes additional debug information such as RNG state fingerprint, package version, system info, and memory usage. If not provided, defaults to FALSE. |
Get reproducibility-focused SHG configuration from last run
A list like getConfig() for the last completed simulation, but with
number_of_segments as the effective segment count used and without
num_threads (thread count must not affect simulation outcomes for fixed seeds
and segment layout; consumers default to auto threads when reloading). Errors if no
simulation has completed on the instance.
shg <- new(SHGInterface)
shg$input_data_folder <- system.file("extdata", "2018", package = "SmokingHistoryGenerator")
shg$runSimFromFixedValues(500, 0, 0, 1950)
repro <- shg$getReproConfig()
shg <- new(SHGInterface)
shg$input_data_folder <- system.file("extdata", "2018", package = "SmokingHistoryGenerator")
shg$runSimFromFixedValues(500, 0, 0, 1950)
repro <- shg$getReproConfig()
names(repro)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.