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

New linter for ...names() instead of names(list(...)) #2794

Open
m-muecke opened this issue Feb 26, 2025 · 1 comment
Open

New linter for ...names() instead of names(list(...)) #2794

m-muecke opened this issue Feb 26, 2025 · 1 comment

Comments

@m-muecke
Copy link

m-muecke commented Feb 26, 2025

Since R version 4.1.3 there is the base R function ...names() for the pattern names(list(...)) with the benefit of being more concise and performant.

@MichaelChirico
Copy link
Collaborator

SGTM, and would be pretty easy to implement. Note #2502 and #2722, though -- {lintr} itself doesn't use this yet because the version in R 4.1.x is buggy, so I think really the dependency here is R>=4.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants