Wraps tools::md5sum() style behaviour for SHA-256 via the
digest package when available, or falls back to a pure-R
implementation via tools::md5sum() + file length as a weaker
check. For integrity work PBO/Grattan-grade, install the
digest package (Suggests).
See also
Other reproducibility:
ato_deposit_zenodo(),
ato_manifest(),
ato_manifest_clear(),
ato_manifest_write(),
ato_snapshot()
Examples
f <- tempfile()
writeLines("hello", f)
ato_sha256(f)
#> [1] "5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03"