Compute the SHA-256 digest of a file
Value
A length-1 character string (hex digest), or NA if
the file does not exist. Uses digest::digest() when the
digest package is available (recommended for research work),
falling back to tools::md5sum() otherwise.
See also
Other reproducibility:
cer_cite(),
cer_deposit_zenodo(),
cer_legislative_instrument(),
cer_manifest(),
cer_manifest_clear(),
cer_manifest_write(),
cer_snapshot()
Examples
f <- tempfile()
writeLines("hello", f)
cer_sha256(f)