# will produce lints
lint(
text = "x == NA",
linters = equals_na_linter()
)
lint(
text = "x != NA",
linters = equals_na_linter()
)
lint(
text = "x %in% NA",
linters = equals_na_linter()
)
# okay
lint(
text = "is.na(x)",
linters = equals_na_linter()
)
lint(
text = "!is.na(x)",
linters = equals_na_linter()
)
Run the code above in your browser using DataLab