check_lavaan_df.RdChain this function onto check_object.
Use this function first before using check_lavaan_uses.
check_lavaan_df(state, invalid_model_msg = NULL, append = TRUE)
| state | state to start from (should be state produced by |
|---|---|
| invalid_model_msg | if specified, this overrides the automatically generated feedback message in case the targeted variable does not validly represent a lavaan model. |
| append | whether or not to append the invalid model message to earlier messages that describe the object. |
# NOT RUN { # example model <- 'a ~ x1' # sct ex() %>% check_object("model") %>% check_lavaan_df() # }