Closed lionel- closed 6 years ago
hmm, I think we can do better by calling into tidyselect::vars_select()
. We should be able to support selection calls. I'll follow up with more commits.
Thank you very much for this! :)
Is there a deadline for getting this fixed and onto CRAN so that revdep for rlang passes? Happy to help move things along with a patch release.
I think I'll revert the changes to expr_name()
and quo_name()
for now so they don't cause too much trouble for this release. In that case I think naniar won't need any urgent changes.
Hiya @lionel- ,
I just wanted to check if I should merge this and submit a patch release for naniar?
Hmm yes good idea, I was busy lately sorry. IIRC naniar is not compatible with rlang devel because it assumes exprs()
flattens quosures and this PR should fix it. As soon as I have time I'll work on that tidyselect PR!
OK great, I'll merge this now, thank you again! :)
It sounds like there will be some changes to tidyselect in the future WRT quasiquotation?
Pass
...
directly to other functions rather than quote and splice.Use
as_string()
rather thanexpr_text()
to cast symbols to strings. The latter is a multi-line deparser for arbitrary expressions. It might add backticks to deparsed symbols and allow unwanted input types like complex expressions.Use
ensyms()
before coercing to strings. This guarantees only symbols can be passed by user.quos()
allows stuff likestarts_with()
, but the code generally assumes symbols, not calls.Remove
bare_to_chr()
as part of this refactoring. It was making the assumption thatexprs()
unwraps quosures, which was a bug in rlang. This causes a revdep failure for the upcoming rlang 0.3.0.