expect_valid: Expect an S4 object is valid

Description Usage Arguments See Also

Description

Similar to is_valid() except designed to work in the testthat::test_that() framework.

Usage

1
expect_valid(object, complete = FALSE, label = NULL)

Arguments

object

an S4 object to test for validity

complete

logical; if TRUE, validObject is called recursively for each of the slots. The default is FALSE.

label

Used to customise failure messages. For expert use only.

See Also

Other validity-tests: validity-tests


RDocTaskForce/testextra documentation built on Feb. 5, 2020, 11:05 p.m.