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

Use snapshots for errors that dplyr owns now #404

Merged
merged 2 commits into from
Dec 14, 2022
Merged

Conversation

DavisVaughan
Copy link
Member

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

slice_*() now handles some of the checks in the generic itself, and the error messages it throws are different from what you had before. I've made these snapshot error tests since dplyr really owns the error message now, and we don't want this to fail on CRAN if dplyr ever changes it.

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!

@DavisVaughan
Copy link
Member Author

DavisVaughan commented Dec 14, 2022

I guess these are a little awkward because the snapshot error will change depending on if you have dev or CRAN dplyr. On second thought, I'll render them with CRAN dplyr and then when 1.1.0 is released you can update them (with no pressure from CRAN)

@markfairbanks
Copy link
Collaborator

Sounds good, thanks @DavisVaughan

@markfairbanks markfairbanks merged commit 39ef4dd into main Dec 14, 2022
@markfairbanks markfairbanks deleted the fix/slice-snapshots branch December 14, 2022 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants