Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

group_walk / group_map not working -- no applicable method for group_map applied to object of class "multidplyr_party_df" #142

Open
JasonAizkalns opened this issue Dec 1, 2022 · 2 comments
Labels
feature a feature request or enhancement

Comments

@JasonAizkalns
Copy link

Consider this example:

library(dplyr)
library(multidplyr)

cluster <- new_cluster(2)

# Works fine...
mtcars %>%
  group_by(cyl) %>%
  group_walk(~ write.csv(.x, paste0(.y, ".csv"))

# This fails...
mtcars %>%
  group_by(cyl) %>%
  partition(cluster) %>%
  group_walk(~ write.csv(.x, paste0(.y, ".csv"))

# Error in UseMethod("group_map") : 
#  no applicable method for 'group_map' applied to an object of class "multidplyr_party_df"

Maybe because group_walk is experimental?

@TimBMK
Copy link

TimBMK commented Feb 9, 2023

I have a similar issue with slice_max(), which is not experimental. It seems not all functions are supported (yet) by multidplyr?

Edit: ... and apparently the same goes for distinct()?

@hadley
Copy link
Member

hadley commented Oct 31, 2023

Thanks for the suggestion! Will definitely consider it when I'm next working on multidplyr.

@hadley hadley added the feature a feature request or enhancement label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants