Skip to content

Commit

Permalink
fix hash fun§
Browse files Browse the repository at this point in the history
  • Loading branch information
mllg committed Sep 10, 2020
1 parent 8eb8ea2 commit 18d00b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ hashes = function(x) {
hash = function(...) {
dots = list(...)
is_fun = map_lgl(dots, is.function)
dots[is_fun] = map(dots[is_fun], function(x) {
dots[is_fun] = map(dots[is_fun], function(fun) {
list(formals = formals(fun), body = as.character(body(fun)))
})
digest::digest(dots, algo = "xxhash64")
Expand Down

0 comments on commit 18d00b3

Please sign in to comment.