Returns a one-row data frame identifying the built dataset by name, size, modification time and SHA-256. This is the record that lets a later reader tell whether two results were produced from the same data.
Usage
built_manifest(cfg = study_config(), dataset = "study")Arguments
- cfg
List. A study manifest from
study_config.- dataset
Character(1). Logical dataset name. Defaults to
"study"."built"is a second name for"study".
Examples
root <- file.path(tempdir(), "built-manifest-example")
dir.create(file.path(root, "datasets"), recursive = TRUE,
showWarnings = FALSE)
yaml::write_yaml(
list(study = "Example", built = "example.csv"),
file.path(root, "_study.yml")
)
write.csv(data.frame(dead = c(1, 0, 0), iv_dead = 1:3),
file.path(root, "datasets", "example.csv"), row.names = FALSE)
built_manifest(study_config(root))
#> file size_bytes mtime
#> 1 example.csv 29 2026-10-21 17:04:50
#> sha256
#> 1 ff053e4e2cbfceda40422125c091a5cd1171909ccaffcd7154e900f5cbf69b4f
unlink(root, recursive = TRUE)