-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Confusing error message if type differs between units objects #4138
Comments
🤔 so this happens in check_type <- function(x, template, header) {
if (identical(typeof(x), typeof(template))) {
return()
}
glubort(header, "must be {friendly_type_of(template)}, not {friendly_type_of(x)}")
} where it checks the underlying type but then errors based on a higher level class. It might be something |
This will be fixed through a complete overhaul of ifelse |
This is also a problem with |
Yeah, it's a problem with a bunch of functions. We know about it and we have a plan to fix it. |
Duplicate of #2432 |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
See below:
Created on 2019-01-30 by the reprex package (v0.2.1.9000)
The text was updated successfully, but these errors were encountered: