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

Add more explanation to the assignment_linter() #2694

Closed
IndrajeetPatil opened this issue Dec 5, 2024 · 2 comments
Closed

Add more explanation to the assignment_linter() #2694

IndrajeetPatil opened this issue Dec 5, 2024 · 2 comments

Comments

@IndrajeetPatil
Copy link
Collaborator

I wanted to refer to {lintr} docs in tidyverse/style#237, but realized that it doesn't give any explanation either.

It would be good to include some documentation explaining why it might be preferable to use <- over =.

@AshesITR
Copy link
Collaborator

AshesITR commented Dec 9, 2024

IMO the most important thing is consistency. If you commit to always use =, your code will turn out equally readable. It just happens to be that the style guide choses to prefer <- since it's more widespread among R users.

@MichaelChirico
Copy link
Collaborator

The style guide is where such explanation belongs IMO, and linked from our docs. Don't think there's anything we should do.

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

3 participants