Skip to contents

Function that hashes the values of the environment, handling special cases such as functions and formulae.

Usage

hash_environment(environment)

Arguments

environment

(environment or list)
The environment to hash.

Value

(list(character))
A list of hashes for the environment

Examples

  hash_environment(list(DiseasyActivity))
#> [1] "3ab34f37cae1118f634a1a06be8d7e34"
  hash_environment(list(mtcars, iris))
#> [1] "6755d143ff87b73a1196c186cec7e86a" "74e8e3b3ccea26fe2b0e55a9b644d8e0"