View source: R/MxUnitTesting.R
omxCheckEquals | R Documentation |
This function tests whether two objects are equal using the ‘==’ operator.
omxCheckEquals(...)
... |
arguments forwarded to expect_equivalent |
Performs the ‘==’ comparison on the two arguments. If the two arguments are not equal, then an error will be thrown.
The OpenMx User's guide can be found at https://openmx.ssri.psu.edu/documentation/.
omxCheckCloseEnough
, omxCheckWithinPercentError
, omxCheckSetEquals
, omxCheckTrue
, omxCheckIdentical
omxCheckEquals(c(1, 2, 3), c(1, 2, 3))
omxCheckEquals(FALSE, FALSE)
# Throws an error
try(omxCheckEquals(c(1, 2, 3), c(2, 1, 3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.