umx (version 1.9.1)

umx_check: umx_check

Description

Check that a test evaluates to TRUE. If not, stop, warn, or message the user

Usage

umx_check(boolean.test, action = c("stop", "warning", "message"),
  message = "check failed")

Arguments

boolean.test

test evaluating to TRUE or FALSE

action

One of "stop" (the default), "warning", or "message"

message

what to tell the user when boolean.test is FALSE

Value

- boolean

References

- http://www.github.com/tbates/umx

See Also

Other Test: umx_check_OS, umx_check_model, umx_check_names, umx_check_parallel, umx_has_CIs, umx_has_been_run, umx_has_means, umx_has_square_brackets, umx_is_MxData, umx_is_MxMatrix, umx_is_MxModel, umx_is_RAM, umx_is_cov, umx_is_endogenous, umx_is_exogenous, umx_is_ordered

Examples

Run this code
# NOT RUN {
umx_check(length(1:3)==3, "stop", "item must have length == 3")
# }

Run the code above in your browser using DataLab