H28 Read a specific release
Use your current course session. Preparation and course runner · R script ↓
H28 Read a specific release
Goal: Distinguish a pinned release from the current one.
Prerequisites: H27.
An explicit release ID prevents an unintended switch to newer data.
training_step(
"H28",
{
print(dataraft.lake::dr_releases(training_lake, "policies"))
first_lake_rows <- dataraft.lake::dr_read_release(
training_lake,
"policies",
release = lake_first$release_id
)
print(first_lake_rows)
stopifnot(sum(first_lake_rows$premium) == 740)
},
needs = c("H27"),
enabled = training_options$lake,
optional = TRUE
)Expected result: The first delivery still totals 740.
Task: Which is stable: latest or an explicit ID?
Show solution
The ID. latest is a moving selection.