Examples for 'rlang::hash'


Hashing

Aliases: hash hash_file

Keywords:

### ** Examples

hash(c(1, 2, 3))
[1] "702f7dd6e81ea41d26ea3b248627ece4"
hash(mtcars)
[1] "d0487363db4e6cc64fdb740cb6617fc0"
authors <- file.path(R.home("doc"), "AUTHORS")
copying <- file.path(R.home("doc"), "COPYING")
hashes <- hash_file(c(authors, copying))
hashes
[1] "d6c89b9f87c5db591875d539d3d6ab44" "cdb3a24318136e74f38209c219ca104b"
# If you need a single hash for multiple files,
# hash the result of `hash_file()`
hash(hashes)
[1] "82ee213b8ad1d973ef570b417cfdfa10"

[Package rlang version 1.1.4 Index]