We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Follow-up to #1579: boolean_arithmetic_linter() can also detect some other cases of sum(<known logical vector>) == 0 --> any(<known logical vector>):
boolean_arithmetic_linter()
sum(<known logical vector>) == 0
any(<known logical vector>)
sum(x %in% y)
sum(x | y)
sum(x & y)
sum(!x)
is.na()
is.nan()
is.finite()
is.element()
stringr
grep()
str_detect()
The text was updated successfully, but these errors were encountered:
any_is_na_linter()
sum(is.na(x)) != 0L
follow-up #1580
7c64b48
New boolean_arithmetic_linter (#1579)
481a158
* New boolean_arithmetic_linter * follow-up #1580 * Follow-up #1581 * Update R/boolean_arithmetic_linter.R * update docs and linter counts Co-authored-by: Indrajeet Patil <[email protected]>
Successfully merging a pull request may close this issue.
Follow-up to #1579:
boolean_arithmetic_linter()
can also detect some other cases ofsum(<known logical vector>) == 0
-->any(<known logical vector>)
:sum(x %in% y)
sum(x | y)
/sum(x & y)
sum(!x)
is.na()
,is.nan()
,is.finite()
,is.element()
stringr
equivalent ofgrep()
-->str_detect()
recommendedThe text was updated successfully, but these errors were encountered: