search for: wraperr

Displaying 1 result from an estimated 1 matches for "wraperr".

Did you mean: wrapers
2024 Mar 08
1
Function environments serialize to a lot of data until they don't
...store and transfer to the cluster workers. I've managed to trace it to the following: # `payload` is being written to the cluster worker. # The function FUN had been created as a closure inside my package: payload$data$args$FUN # function (l, ...) # withCallingHandlers(fun(l$x, ...), error = .wraperr(l$name)) # <bytecode: 0x5644a9f08a90> # <environment: 0x5644aa841ad8> # The function seems to bring a lot of captured data with it. e <- environment(payload$data$args$FUN) length(serialize(e, NULL)) # [1] 738202878 parent.env(e) # <environment: namespace:mypackage> # Th...