Search code examples
rparallel-processingdplyrmulticoremultidplyr

R multidplyr: how to assign packages to clusters


I am using the package multidplyr where you can split the data over multiple cores within a dplyr pipe. You can assign values and functions to the cores with cluster_assign_value(), but the question is how to assign packages to the clusters? Because it should be able to use packages within the functions.

I expect something like cluster_assign_package() but I cannot find such function.


Solution

  • You can also assign a package to the clusters with cluster_library()