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

Consider updating if_else() #6243

Closed
hadley opened this issue Apr 26, 2022 · 0 comments · Fixed by #6317
Closed

Consider updating if_else() #6243

hadley opened this issue Apr 26, 2022 · 0 comments · Fixed by #6317
Labels
feature a feature request or enhancement funs 😆

Comments

@hadley
Copy link
Member

hadley commented Apr 26, 2022

It's taking us longer to get to funs than expected, so it might be useful to update our if_else() to use vctrs in the meantime. This would avoid:

dplyr::if_else(TRUE, NA, 1)
#> Error in `dplyr::if_else()`:
#> ! `false` must be a logical vector, not a double vector.

Created on 2022-04-26 by the reprex package (v2.0.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement funs 😆
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant