-
Notifications
You must be signed in to change notification settings - Fork 143
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
englue-ing NULL
yields uninformative error
#1492
Comments
This is tricky because this behaviour is from recycling rules of unclass(glue::glue("foo {NULL}"))
#> character(0) We could detect a change in size and throw an error about sizes of interpolated elements causing recycling. |
Oh yeah: tidyverse/glue#246 |
@hadley With the recent refactoring of fn <- function(x) {
englue("{{ x }} {NULL}")
}
fn(foo)
#> character(0) But I'm thinking we should enforce a size 1 return from |
Yeah, I think that's a good idea. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Created on 2022-09-26 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: