umx_check: umx_check

Description Usage Arguments Value References See Also Examples

View source: R/misc_and_utility.R

Description

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

Usage

1
2
3
4
5
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

- <https://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()

Examples

1
umx_check(length(1:3)==3, "stop", "item must have length == 3")

tbates/umx documentation built on March 30, 2020, 7:56 a.m.