omxCheckWarning {OpenMx} | R Documentation |
This function tests whether the correct warning message is thrown.
omxCheckWarning(expression, message)
expression |
an R expression that produces a warning |
message |
a character string with the desired warning message |
Arguments ‘expression’ and ‘message’ give the expression that generates the warning and the message that is supposed to be generated, respectively.
The OpenMx User's guide can be found at http://openmx.psyc.virginia.edu/documentation.
omxCheckError
omxCheckWithinPercentError
,
omxCheckIdentical
, omxCheckSetEquals
,
omxCheckTrue
, omxCheckEquals
msg <- paste("Objective functions like mxFIMLObjective()", "have been deprecated in favor of expectation and fit functions.\n", "Please use mxExpectationNormal(covariance= , means = , ...) instead,", "and add a call to mxFitFunctionML().", "See examples at help(mxExpectationNormal)") foo <- omxCheckWarning(mxFIMLObjective('cov', 'mean'), msg)