This function calls digest with the default hashing algorithm
as set in the package.
Details
By default, the function hashes a canonical objec representation: Across R versions, attribute order of objects seems not to be consistent, so attributes are sorted by name first. Further, numeric variables are rounded to a given precision.
Examples
hash( c(1,2,3,4,5) )
#> [1] "fa45ce885f810ef9039b80b0edb889fa195a599fb0b7c70ebcd1f4f3cedc220a"