Skip to contents

Call once at the top of an analysis script to declare the vintage of ATO data you intend to use. Every subsequent ato_* fetch records this date in the ato_tbl provenance header, in ato_manifest() entries, and in ato_cite() output. Combined with SHA-256 integrity (see ato_sha256() and ato_manifest()), this gives a reproducible audit trail acceptable for PBO or Grattan-style published work.

Usage

ato_snapshot(date)

Arguments

date

ISO "YYYY-MM-DD" character, Date, or POSIXct. Pass NULL to clear.

Value

Invisibly, the new pinned date (as Date), or NULL.

Details

If called with no arguments, returns the current pin (or NULL if unset).

Examples

ato_snapshot("2026-04-24")
ato_snapshot()
#> [1] "2026-04-24"
ato_snapshot(NULL)