-
Notifications
You must be signed in to change notification settings - Fork 39
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
Selecting -NULL #110
Comments
This comment has been minimized.
This comment has been minimized.
I'm not sure this is needed given that you can use tidyselect::vars_select(names(mtcars), integer())
#> named character(0)
tidyselect::vars_select(names(mtcars), -integer())
#> mpg cyl disp hp drat wt qsec vs am gear
#> "mpg" "cyl" "disp" "hp" "drat" "wt" "qsec" "vs" "am" "gear"
#> carb
#> "carb" Created on 2019-09-11 by the reprex package (v0.3.0) |
This would be nice for |
I think making If we just want to solve the default value problem, I'd be in favour of: nothing <- function() integer() And adding a couple of tests to ensure that this behaviour is locked in. |
I was thinking about the principle of treating Though I guess this principle would favour making this work actually:
Edit: hmm that wouldn't help OP since that's for character vectors, not quoted inputs. |
I like Let's keep thinking about this, in the meantime I will recommend your solution of using |
Sounds good to me. |
https://stackoverflow.com/questions/57590111/tidy-evaluation-adding-an-argument-to-a-function-that-prevents-gathering
The text was updated successfully, but these errors were encountered: