Closed lionel- closed 5 years ago
Where would you use this?
I don't remember exactly, but this had to do with tidyeval users taking inputs with ensyms()
as an attempt to be strict about looking up the symbols only in the data frame. This is not the right way to be strict however, as the symbol will still be looked up inside the execution env of the user's wrapper, all the way up to the search path. I wasn't planning on implementing this now because I haven't thought about the issue for a while.
I'm in favour of closing issues if you don't remember exactly why you need them 😉
I have transferred the issue to https://github.com/tidyverse/tidyeval/issues/34.
Do we need
tidyselect::validate_vars()
, that would take a character vector of names and throw appropriate errors if not found?Using
vars_select()
for this is a bit awkward because of the need to unquote (and both!!
and!!!
work, which doesn't help with the awkwardness)validate_vars()
would take the data (and requirenames()
method? Thetbl_vars()
generic is in dplyr...) and a character vector: