
Persist an observational snapshot to disk
save_scan.RdSaves a snapshot dataset (typically produced by scan_storage())
as a uniquely identified .rds file.
Usage
save_scan(
df,
storage_id,
path = here::here("data-raw", "snapshots"),
label = NULL
)Details
The filename encodes:
storage context
observation time
optional scope label
a deterministic hash
This ensures:
chronological ordering
uniqueness
reproducibility of stored observations
Examples
if (FALSE) { # \dontrun{
scan <- scan_storage("D:/_markdown")
save_scan(scan, "l480-ssd")
} # }