Commit 2421a22b authored by nperez's avatar nperez
Browse files

parent directory the function environment

parent 43be5d16
Pipeline #3225 passed with stage
......@@ -507,7 +507,7 @@ Apply <- function(data, target_dims = NULL, fun, ...,
chunk_sizes <- c(chunk_sizes, total_size %% chunk_size)
}
fun_env <- new.env(parent = parent.frame())
fun_env <- new.env(parent = environment(fun))
for (i in seq_along(extra_info)) {
assign(names(extra_info)[i], extra_info[[i]], envir = fun_env)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment