expect_s3_class_linter {lintr}R Documentation

Require usage of expect_s3_class()

Description

testthat::expect_s3_class() exists specifically for testing the class of S3 objects. testthat::expect_equal(), testthat::expect_identical(), and testthat::expect_true() can also be used for such tests, but it is better to use the tailored function instead.

Usage

expect_s3_class_linter()

Tags

best_practices, package_development

See Also

linters for a complete list of linters available in lintr.


[Package lintr version 3.0.0 Index]