checksum | R Documentation |
This is a generic function for applying cryptographic hash functions and calculating checksums for externally-stored R objects.
checksum(x, ...)
## S4 method for signature 'character'
checksum(x, algo = "sha1", ...)
## S4 method for signature 'matter_'
checksum(x, algo = "sha1", ...)
x |
A file path or 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
digest
x <- matter(1:10)
y <- matter(1:10)
checksum(x)
checksum(y) # should be the same
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.