Running examples in ‘semlbci-Ex.R’ failed
The error most likely occurred in:

> ### Name: ci_order
> ### Title: Check The Order of Bounds in a List of 'semlbci' Objects
> ### Aliases: ci_order print.ci_order
> 
> ### ** Examples
> 
> 
> library(lavaan)
This is lavaan 0.6-19
lavaan is FREE software! Please report any bugs.
> mod <-
+ "
+ m ~ x
+ y ~ m
+ "
> fit_med <- sem(mod, simple_med, fixed.x = FALSE)
> lbci_fit <- semlbci(fit_med)
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
> lbci_fit_nb <- nearby_levels(lbci_fit,
+                              ciperc_levels = c(-.050, .050))
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_equality_mconstraint returned NLOPT_INVALID_ARGS.
> 
> # Check the order of the confidence bounds.
> # A confidence interval with a higher level of confidence
> # should enclose a confidence interval with
> # a lower level of confidence.
> ci_order(lbci_fit_nb)
Error in stats::var(level_tmp) : is.atomic(x) is not TRUE
Calls: ci_order ... lapply -> FUN -> confint.semlbci -> <Anonymous> -> stopifnot
Execution halted