H35 Freeze a report
Use your current course session. Preparation and course runner · R script ↓
H35 Freeze a report
Goal: Bind metrics to published inputs.
Publish the checked cohort product so each measurement carries its exact data version.
training_step(
"H35",
{
cohort_release <- dr_publish(cohort_product, to = training_lake)
report_values <- dataraft.metrics::dr_measure(
cohort_release,
metrics = portfolio_metrics,
by = character()
)
frozen_report <- dataraft.metrics::dr_report_release(
report_values,
id = "training.august.v1",
code_version = "training-report-v1",
to = training_lake
)
print(frozen_report)
},
needs = c("H34", "H26"),
enabled = training_options$lake,
optional = TRUE
)Expected result: A stored report with ID training.august.v1.
Task: Can the same ID later represent different values?
Show solution
No. Report IDs identify immutable versions.