Skip to content

Commit

Permalink
re-enable stripping fun env
Browse files Browse the repository at this point in the history
  • Loading branch information
mschubert committed Sep 17, 2023
1 parent bde19cb commit 9573416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/pool.r
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Pool = R6::R6Class("Pool",
env = function(...) {
args = list(...)
for (name in names(args)) {
# if (inherits(args[[name]], "function"))
# environment(args[[fname]]) = .GlobalEnv
if (inherits(args[[name]], "function"))
environment(args[[fname]]) = .GlobalEnv
private$master$add_env(name, args[[name]])
}
invisible(private$master$list_env())
Expand Down

0 comments on commit 9573416

Please sign in to comment.