Computes a cryptographic hash of the simulation configuration. The fingerprint uniquely identifies a simulation configuration for caching and deduplication purposes.
Arguments
- config
An S7 SimulationConfig object or a
StudySpeccreated bynew_study_spec().
Details
The fingerprint excludes runtime policy settings (B4):
result_path: Output location doesn't affect simulation identitycheckpoint_every/checkpoint_format: checkpoint cadence/format is runtime optimizationretain: retention is runtime policy; fingerprint exclusion does not make every retention change legal on resume (a compatible resume may narrow retention; widening is rejected once completed outcomes lack the requested artifacts)max_errors: error tolerance is runtime policy
Examples
if (FALSE) { # \dontrun{
config <- simulation_config(
data_grid = data.frame(n = 100),
fit_grid = data.frame(model = "baseline"),
data_generator = my_data_gen,
n_replicates = 10L,
seed = 42L
)
fingerprint <- compute_config_fingerprint(config)
# Use fingerprint for caching or deduplication
} # }