powered by
testthat::expect_s4_class() exists specifically for testing the class of S4 objects. testthat::expect_true() can also be used for such tests, but it is better to use the tailored function instead.
testthat::expect_s4_class()
testthat::expect_true()
expect_s4_class_linter()
best_practices, package_development
linters for a complete list of linters available in lintr.