
Hash an R object, string, raw vector or file (digest's digest, natively)
Source:R/digest_native.R
morie_digest.RdSame contract as digest::digest(): by default the object is
serialize()d (version 2, the 14-byte header skipped so the hash does
not depend on the R version), serialize = FALSE hashes a character
string or raw vector as-is, file = TRUE hashes a file's bytes, length
and skip window the input, raw = TRUE returns the digest bytes, and
seed feeds xxhash32 / xxhash64 / murmur32.
Usage
morie_digest(
object,
algo = c("md5", "sha1", "crc32", "sha256", "sha512", "xxhash32", "xxhash64",
"murmur32", "crc32c", "sha224", "sha384"),
serialize = TRUE,
file = FALSE,
length = Inf,
skip = "auto",
ascii = FALSE,
raw = FALSE,
seed = 0,
errormode = c("stop", "warn", "silent"),
serializeVersion = getOption("serializeVersion", 2L)
)