Closed Mullefa closed 7 years ago
I find it indeed useful… I also derived the following to attach any object:
cluster_assign_obj <- function(cl, x) {
name <- as.character(substitute(x))
stopifnot(exists(name))
cluster_assign_value(cl, name, x)
}
:+1: @Mullefa thanks for the implementation. Given that parallelizing do()
over a complex function call is probably one of the more promising use cases, a utility function like this would be great.
Implemented as cluster_copy
(probably) dubious implementation, but something like: