Correct Warning Message Function
This function tests whether the correct warning message is thrown. Arguments ‘expression’ and ‘message’ give the expression that generates the warning and the message that is supposed to be generated, respectively.
omxCheckWarning(expression, message)
expression |
an R expression that produces a warning |
message |
a character string with the desired warning message |
note: to test for no warning, set message = NA
.
The OpenMx User's guide can be found at http://openmx.ssri.psu.edu/documentation.
foo <- omxCheckWarning(mxFIMLObjective('cov', 'mean'), "deprecated") # Test for no warning omxCheckWarning(2+2, message = NA)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.