omxCheckEquals {OpenMx} | R Documentation |
This function tests whether two objects are equal.
omxCheckEquals(a, b)
a |
The first value to compare. |
b |
The second value to compare. |
Performs the ‘==’ operator on the two arguments. If the two arguments are not equal, then an error will be thrown. If ‘a’ and ‘b’ are equal to each other, by default the function will print a statement informing the user the test has passed. To turn off these print statements use options("mxPrintUnitTests" = FALSE)
.
The OpenMx User's guide can be found at http://openmx.psyc.virginia.edu/documentation.
omxCheckCloseEnough
omxCheckWithinPercentError
omxCheckSetEquals
omxCheckTrue
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)))