DRDataRaft/ docs
GitHub ↗

H35 Freeze a report

H35DuckLake, releases and reports1 step

Use your current course session. Preparation and course runner · R script ↓

H35 Freeze a report

Goal: Bind metrics to published inputs.

Prerequisites: H34 and H26.

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.

Search documentation

Search functions, packages and guides.