Use vec_paste0()
helper for better recycling
#1404
Merged
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 there, we were running revdeps for dplyr 1.1.0 and this package was indirectly flagged through a breakage in {logitr}, which relies on this package.
Created on 2022-12-15 with reprex v2.0.2.9000
rename_with()
now checks thatfn
returns a result that is the same size as the input, i.e. 3 column names go in so 3 should come out. This also needs to apply when there are 0 column names, butpaste0()
doesn't recycle well when there are size 0 elements mixed with size 1 elements. I've added avec_paste0()
helper that we use in situations like this. You already rely on vctrs through dplyr, so this isn't an additional dependency for you.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!