diff --git a/R/pool.r b/R/pool.r index 06d72fc..8cf2faf 100644 --- a/R/pool.r +++ b/R/pool.r @@ -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())