xxhash_file {xxhashlite} | R Documentation |
Calculate the hash of a file
Description
Calculate the hash of a file
Usage
xxhash_file(file, algo = "xxh128", as_raw = FALSE)
Arguments
file |
filename |
algo |
Select the specific xxhash algorithm. Default: 'xxh128'. (the latest algorithm in the xxhash family) Valid values: 'xxh32', 'xxh64', 'xxh128', 'xxh3' |
as_raw |
Return the hash as a raw vector of bytes instead of string?
Default: FALSE. If TRUE, then the raw bytes are returned in big-endian
order - which is what |
Value
String representation of hash. If as_raw = TRUE
then a
raw vector is returned instead.
Examples
filename <- system.file('DESCRIPTION', package = 'base', mustWork = TRUE)
xxhash_file(filename)
[Package xxhashlite version 0.2.2 Index]