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.
Hi @atusy,
We are planning a release of tidyr for early to mid January, and your package was flagged in our revdeps.
If you install the dev version of tidyr, you can reproduce the issue with:
It looks like in
fill_header()
you are supplyingnames_ptypes = integer()
inpivot_longer()
. This actually should never have worked, you are supposed to supply a list of named ptypes, likelist(var = integer())
. Regardless, this wouldn't actually work because you can't cast a character column to integer usingnames_ptypes
. If you want that, you neednames_transform = list(var = as.integer)
.We have just added the ability to do
names_ptypes = integer()
into the dev version of tidyr, which is why you now see the cast error.Since you immediately pivot-wider right after this, I don't think you actually need to cast to integer. Just leave them as character names because they will end up as column names in the end.
We would greatly appreciate if you could merge this PR and plan for a CRAN release around early January! You should be able to go ahead and send to CRAN, as this doesn't rely on dev tidyr in any way. Thank you!