Commit 8a07a33b authored by Nuria Pérez-Zanón's avatar Nuria Pérez-Zanón
Browse files

Merge branch 'develop-EnvirCor' into 'master'

Include function environment

Closes #10

See merge request !20
parents 43be5d16 2421a22b
Pipeline #4776 passed with stage
in 2 minutes and 25 seconds
......@@ -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