From 95734168672404ec12f1724f4100e2825670a7d2 Mon Sep 17 00:00:00 2001 From: Michael Schubert Date: Sun, 17 Sep 2023 21:46:59 +0200 Subject: [PATCH] re-enable stripping fun env --- R/pool.r | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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())