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

dot_names #415

Open
hadley opened this issue Feb 22, 2018 · 3 comments
Open

dot_names #415

hadley opened this issue Feb 22, 2018 · 3 comments
Labels
feature a feature request or enhancement tidyeval:dots

Comments

@hadley
Copy link
Member

hadley commented Feb 22, 2018

dot_names(a = 1, b = 2, 3)
#> [1] "a" "b" NA

It's sometimes useful to capture the names of dotted arguments without evaluating them for generating error messages.

Related to dots_n()

@lionel-
Copy link
Member

lionel- commented Feb 22, 2018

Would it make sense for dots_names() and dots_n() to have an expand argument? If TRUE, it would expand !!! to give the right answer when tidy dots are enabled. Should probably default to FALSE because this can have side effects or be costly.

Maybe we can also check for !!! when expand is FALSE and either return NA or throw an error.

@hadley
Copy link
Member Author

hadley commented Feb 22, 2018

Or we could choose to make them blind to tidy dots. I think dots_n() and dots_name() are mostly used for generating error messages. It's not clear that they need to support tidy dots (or we could at least wait to implement until we have a concrete need)

@daikonradish

This comment has been minimized.

@lionel- lionel- added the feature a feature request or enhancement label Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement tidyeval:dots
Projects
None yet
Development

No branches or pull requests

3 participants