## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")

## -----------------------------------------------------------------------------
library(pksR)

## ----eval = FALSE-------------------------------------------------------------
# m <- pks_manifest("2026.1")
# m                                  # files with SHA-256, size and rows
# meta <- attr(m, "manifest")
# meta$pipeline_commit               # the pipeline code that built it
# meta$target_boundary_year          # boundary of the harmonized panel
# meta$validation                    # result of the validation gate
# meta$attribution                   # sources, licences, source notes

## -----------------------------------------------------------------------------
d <- pks_example()
pks_validate(d)

# A broken panel: Berlin removed
pks_validate(d[d$ags != "11000", ])

