Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We are planning on releasing tidyr 1.2.0 towards the end of this month.
We noticed in revdeps that this package was broken. An easy way to reproduce is to install the dev version of tidyr and run this example:
The problem comes down to the fact that you were trying to call
complete()
with a grouped data frame, and you were trying to complete on the group column. This is actually not well defined, ascomplete()
completes "within" each group, so you really shouldn't have access to the group variables. The previous behavior was problematic in many cases (see tidyverse/tidyr#396 and tidyverse/tidyr#966), so we've made a fix to ensure thatcomplete()
works correctly with grouped data frames in all cases. This fix comes with the restriction that now you can't specify the group variables in the call tocomplete()
.It looks like everything would work fine if you just drop the groups entirely, so that is what this PR does.
This should work on both the current and development version of tidyr, so you should be able to go ahead and do a patch release. We would greatly appreciate if you could do this so we can release tidyr! Thank you!