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

separate_age_groups() fails ungracefully when it age groups aren't separable #93

Open
gadenbuie opened this issue Jul 31, 2020 · 0 comments
Labels
bug 🐛 Something isn't working considering 🤔 let's think about this

Comments

@gadenbuie
Copy link
Member

This should probably throw an error before hitting the error with if_else().

library(fcds)
library(dplyr, warn.conflicts = FALSE)

tibble(age_group = NA) %>% separate_age_groups()
#> Error: Problem with `mutate()` input `age_max`.
#> x `false` must be a double vector, not a logical vector.
#> ℹ Input `age_max` is `if_else(is.na(age_max) & !is.na(age_min), Inf, age_max)`.

Created on 2020-07-31 by the reprex package (v0.3.0)

@gadenbuie gadenbuie added bug 🐛 Something isn't working considering 🤔 let's think about this labels Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working considering 🤔 let's think about this
Projects
None yet
Development

No branches or pull requests

1 participant