# will produce lints
lint(
text = "x %in% 1L",
linters = scalar_in_linter()
)
lint(
text = "x %chin% 'a'",
linters = scalar_in_linter(in_operators = "%chin%")
)
# okay
lint(
text = "x %in% 1:10",
linters = scalar_in_linter()
)
Run the code above in your browser using DataLab