Closed internaut closed 3 years ago
multidplyr::cluster_copy()
😄
Sorry, overlooked that :upside_down_face:
Guess it would be helpful to provide an example with cluster_copy()
in the documentation. I think it's a very common use-case but it's not shown on project's website or in the vignette.
Edit: For others stumbling across this: Putting cluster_copy(cluster, 'mymean')
after the definition of mymean
in the above code solves the problem.
@internaut You can probably close this issue...just an FYI.
In my experiments with multidplyr, I found that applying functions that I defined by myself don't work with multidplyr:
Using multidplyr 0.1.0, this fails with:
It looks like the definition of
mymean
is not known to the clusters. Is there a way somehow "distribute" my own functions to the clusters, too?Since multidplyr should be used for parallelization of complex functions, I think this is an important limitation which should at least be noted in the documenation.