omxCheckIdentical: Exact Equality Testing Function

View source: R/MxUnitTesting.R

omxCheckIdenticalR Documentation

Exact Equality Testing Function

Description

This function tests whether two objects are equal.

Usage

omxCheckIdentical(...)

Arguments

...

arguments forwarded to expect_identical

Details

Performs the ‘identical’ comparison on the two arguments. If the two arguments are not equal, then an error will be thrown.

References

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

See Also

omxCheckCloseEnough, omxCheckWithinPercentError, omxCheckSetEquals, omxCheckTrue, omxCheckEquals

Examples


omxCheckIdentical(c(1, 2, 3), c(1, 2, 3))

omxCheckIdentical(FALSE, FALSE)

# Throws an error
try(omxCheckIdentical(c(1, 2, 3), c(2, 1, 3)))


OpenMx documentation built on Nov. 8, 2023, 1:08 a.m.