Closed Ax3man closed 7 years ago
@@ master #26 diff @@
========================================
Files 9 9
Lines 178 195 +17
Methods 0 0
Branches 0 0
========================================
Hits 35 35
- Misses 143 160 +17
Partials 0 0
Powered by Codecov. Last updated by f6bece5...8c12d63
I'm consistently getting the "Error: length(values) == length(cluster) is not TRUE" values using multidplyr with any number of cores other than 2. How do I devtools::install this version?
@fpbarthel devtools::install_github('Ax3man/multidplyr')
The approach of just picking the needed number of cores from an existing cluster seems better to me. But I really appreciate your effort :)
This takes a slightly different approach than the pull request from @fugufisch, which first creates a cluster, and then reduces that cluster where needed. Here,
partition_
will by default create a cluster that never has more nodes than the number of shards. If the user passes a cluster that is too large, the same error as before will be generated.Test case:
This will now initialize a cluster with 3 cores. Previously it would throw the following error (if sufficient cores were available):