Skip to content

Commit

Permalink
Merge branch 'memoise-on-the-fly' of https://github.com/funecology/fu…
Browse files Browse the repository at this point in the history
…ndiversity into memoise-on-the-fly
  • Loading branch information
Matthias Grenié committed Mar 22, 2024
2 parents e1976ee + 4b89657 commit 6f4160d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions R/use_memoise.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ use_memoise <- function() {
return(FALSE)
}
# unspecified / default
if (is.null(getOption("fundiversity.memoise"))) {
# TRUE or FALSE depending on whether memoise was installed when fundiversity
# was loaded
return(exists("fd_chull_memoised"))
}
# TRUE or FALSE depending on whether memoise was installed when fundiversity
# was loaded
return(exists("fd_chull_memoised"))
}

# Added this to make 'testthat::local_mocked_bindings()' work
Expand Down

0 comments on commit 6f4160d

Please sign in to comment.