0

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.

JdP
  • 714
  • 7
  • 14

2 Answers2

0

Already found the answer: add library(packageName) in the function definition.

JdP
  • 714
  • 7
  • 14
0

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

kath
  • 7,624
  • 17
  • 32