# will produce lints
lint(
text = "length(x == 0)",
linters = length_test_linter()
)
lint(
text = "nrow(x > 0) || ncol(x > 0)",
linters = length_test_linter()
)
lint(
text = "NROW(x == 1) && NCOL(y == 1)",
linters = length_test_linter()
)
# okay
lint(
text = "length(x) > 0",
linters = length_test_linter()
)
lint(
text = "nrow(x) > 0 || ncol(x) > 0",
linters = length_test_linter()
)
lint(
text = "NROW(x) == 1 && NCOL(y) == 1",
linters = length_test_linter()
)
Run the code above in your browser using DataLab