omxCheckTrue: Boolean Equality Testing Function

Description Usage Arguments Details References See Also Examples

View source: R/MxUnitTesting.R

Description

This function tests whether an object is equal to TRUE.

Usage

1

Arguments

a

the value to test.

Details

Checks element-wise whether an object is equal to TRUE. If any of the elements are false, then an error will be thrown.

References

The OpenMx User's guide can be found at http://openmx.ssri.psu.edu/documentation.

See Also

omxCheckCloseEnough, omxCheckWithinPercentError, omxCheckIdentical, omxCheckSetEquals, omxCheckEquals

Examples

1
2
3
4
5
6
omxCheckTrue(1 + 1 == 2)

omxCheckTrue(matrix(TRUE, 3, 3))

# Throws an error
try(omxCheckTrue(FALSE))

OpenMx/OpenMx documentation built on Dec. 9, 2019, 3:13 p.m.