Skip to content

Conversation

@DavisVaughan
Copy link
Member

@DavisVaughan DavisVaughan commented Sep 30, 2025

Branched from #7722

See r-lib/vctrs#2030 for benchmarks!

One thing of note is that vec_if_else() disallows arrays for condition. I am not yet sure if we are going to have to provide a compat layer for 1D arrays in if_else() itself. We will have to run revdeps, and then add a test on the dplyr side if we need this. "c6431dd7-a51a-4fe5-81a9-b889d0a1510a"

@DavisVaughan DavisVaughan force-pushed the feature/if-else-improvements branch from 4c1ae7f to 9862bd8 Compare September 30, 2025 15:15
@DavisVaughan DavisVaughan force-pushed the feature/if-else-improvements-2 branch from 94bc8ae to 3a3603a Compare September 30, 2025 15:16
@DavisVaughan DavisVaughan requested a review from hadley September 30, 2025 16:53
@DavisVaughan
Copy link
Member Author

Revdep results look pretty good here. Only 1-2 failures related to condition being a logical array, which we no longer allow

Base automatically changed from feature/if-else-improvements to main October 1, 2025 13:18
@DavisVaughan DavisVaughan force-pushed the feature/if-else-improvements-2 branch from e0691ad to f94aac2 Compare October 1, 2025 13:21
@DavisVaughan DavisVaughan merged commit fbe4a4b into main Oct 1, 2025
12 checks passed
@DavisVaughan DavisVaughan deleted the feature/if-else-improvements-2 branch October 1, 2025 13:25
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