Require usage of expect_true(x) over expect_equal(x, TRUE)
Source:R/expect_true_false_linter.R
expect_true_false_linter.Rd
testthat::expect_true()
and testthat::expect_false()
exist specifically
for testing the TRUE
/FALSE
value of an object.
testthat::expect_equal()
and testthat::expect_identical()
can also be
used for such tests, but it is better to use the tailored function instead.
See also
linters for a complete list of linters available in lintr.