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

Make uncount() generic #1358

Merged
merged 4 commits into from
May 11, 2022
Merged

Conversation

mgirlich
Copy link
Contributor

I guess that uncount() is more stable than the other functions mentioned in #1071. This would currently be useful for dtplyr tidyverse/dtplyr#352
@DavisVaughan Are you fine with making uncount() generic or do you think the interface is not yet stable (enough)?

R/uncount.R Outdated Show resolved Hide resolved
Copy link
Member

@DavisVaughan DavisVaughan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I am fine with making uncount() generic, as it does seem more stable than the other functions mentioned in #1071, as you said. @hadley should weigh in about this though.

I agree with the placement of the dots. I am running revdeps now and will report back with the results. Hopefully no one was relying on positional args for .remove or .id here.

Could you also please add two NEWS bullets? One that mentions that ... have been added between the required and optional arguments, and one that mentions that uncount() has become generic. Both should reference this PR.

@DavisVaughan DavisVaughan requested a review from hadley May 5, 2022 20:11
Copy link
Member

@hadley hadley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me.

@DavisVaughan
Copy link
Member

DavisVaughan commented May 6, 2022

Revdepcheck shows no problems from this PR!

@DavisVaughan DavisVaughan merged commit 1b75df8 into tidyverse:main May 11, 2022
@DavisVaughan
Copy link
Member

Thanks @mgirlich !

@mgirlich mgirlich deleted the uncount-generic branch January 2, 2023 08:40
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.

3 participants