Skip to content

Commit

Permalink
export env again (vignette create fail otherwise)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschubert committed Sep 17, 2023
1 parent 6f60a61 commit c521933
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 c521933

Please sign in to comment.