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

Fixes for dev dplyr #1070

Merged
merged 3 commits into from
Dec 15, 2022
Merged

Conversation

DavisVaughan
Copy link
Member

This PR makes your package compatible with the next version of dplyr:

  • rename_with() now checks that the result of the function is the right length. paste0() has bad recycling behavior when there are length 0 inputs so we typically use a vec_paste0() helper for this instead
  • slice() with no inputs now drops all rows. We were testing this but i dont think we should test this edge case dplyr behavior so i just removed the test
  • I also fixed a dev tidyr issue where we now assert that tidyselection in drop_na() shouldn't rename (because that isn't meaningful). And I used the more appropriate all_of() selector.

We plan to submit dplyr 1.1.0 on January 27th.

This should be compatible with both dev and CRAN dplyr. It would help us out if you could go ahead and send a patch version of your package to CRAN ahead of time! Thanks!

@EmilHvitfeldt
Copy link
Member

Thank you!!

@EmilHvitfeldt EmilHvitfeldt merged commit 9e4d0f3 into tidymodels:main Dec 15, 2022
@github-actions
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 30, 2022
@DavisVaughan DavisVaughan deleted the fix/dev-dplyr branch January 10, 2023 00:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants