checksum {matter} | R Documentation |
This is a generic function for applying cryptographic hash functions and calculating checksums for arbitrary R objects.
checksum(x, ...) ## S4 method for signature 'matter' checksum(x, algo = c("sha1", "md5"), ...)
x |
An object to be hashed. |
algo |
The hash function to use. |
... |
Additional arguments to be passed to the hash function. |
The method for matter
objects calculates checksums of each of the files in the object's paths
.
A character vector giving the hash or hashes of the object.
Kylie A. Bemis
x <- matter(1:10) y <- matter(1:10) checksum(x) checksum(y) # should be the same