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

vars_select behavior with NA args #72

Closed
MikeBadescu opened this issue Aug 21, 2018 · 0 comments
Closed

vars_select behavior with NA args #72

MikeBadescu opened this issue Aug 21, 2018 · 0 comments
Labels
bug an unexpected problem or unintended behavior dsl

Comments

@MikeBadescu
Copy link

I would expect vars_select(c("a", "b"), NA_integer_) to return an error similar to using NA.

library(tidyselect)
vars_select(c("a", "b"), NA)
#> Error: `NA` must evaluate to column positions or names, not a logical vector
vars_select(c("a", "b"), NA_character_)
#> Error: Unknown column `NA`
vars_select(c("a", "b"), NA_integer_)
#>   a   b 
#> "a" "b"

Created on 2018-08-20 by the reprex package (v0.2.0).

@lionel- lionel- added bug an unexpected problem or unintended behavior dsl labels Sep 9, 2019
lionel- added a commit that referenced this issue Sep 10, 2019
lionel- added a commit that referenced this issue Sep 10, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior dsl
Projects
None yet
Development

No branches or pull requests

2 participants