-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Use .ignore_empty="all" for enquos() #2936
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
Use .ignore_empty="all" for enquos() #2936
Conversation
tests/testthat/test-aes.r
Outdated
@@ -89,7 +89,7 @@ test_that("assignment methods pull unwrap constants from quosures", { | |||
}) | |||
|
|||
test_that("quosures are squashed when creating default label for a mapping", { | |||
p <- ggplot(mtcars) + aes(!!quo(identity(!!quo(cyl)))) | |||
p <- ggplot(mtcars) + aes(!!rlang::quo(identity(!!rlang::quo(cyl)))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why this matters, but if I use .ignore_empty = "all"
, this fails...
2a5cac9
to
3e538c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thanks for reviewing! |
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/ |
I saw
aes()
is mentioned here: r-lib/rlang#643. It saysenquos()
will get"all"
option for.ignore_empty
, which ignores named missing arguments as well, in rlang v0.3.0 . This PR uses it to simplify the code.Besides, r-lib/rlang#430 seems fixed, so the workaround is no longer needed.