-
Notifications
You must be signed in to change notification settings - Fork 187
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
scalar_in_linter() for x %in% 1 #2084
Conversation
In the presence of NAs, |
We could lint |
I prefer the latter for making missing behavior explicit... if you prefer the former it's best not to use this linter I'd say. We can tweak the documentation to reflect that it may be up to taste, WDYT? |
I'd make that a message customization as a follow-up |
Fine by me, though I might turn on the RHS = NA case specifically. |
Keep in mind that will generate incorrect advice since the behavior of == differs from %in% there. |
Codecov Report
@@ Coverage Diff @@
## main #2084 +/- ##
=======================================
Coverage 99.65% 99.65%
=======================================
Files 118 119 +1
Lines 5210 5227 +17
=======================================
+ Hits 5192 5209 +17
Misses 18 18
|
Part of #884