Closed kartiksubbarao closed 6 years ago
Got the answer: https://stackoverflow.com/a/47066154/3151579
What I didn't realize was that apparently only dplyr verbs can be directly called on the partitioned data frame, so I needed to wrap the pmap_dfr
call in dplyr::do
. I had implicitly assumed that anything from the tidyverse would "just work" :-)
It would be nice if it were possible to report a better error for this, but I'll go ahead and close this issue.
I'm trying to use multidplyr_0.0.0.9000 with dplyr_0.7.4.9000 and pmap_dfr from purrr_0.2.4.9000. The following code (without using multidplyr) works fine:
When I try to partition the grid with multidplyr:
I get the error
Error: Element 5 is not a vector (environment)
from pmap_dfr()I also get the #57 warning from partition():
group_indices_.grouped_df ignores extra arguments
. Not sure if that's related or not.