Running ‘testthat.R’ [95s/78s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(semlbci)
  > 
  > test_check("semlbci")
  Starting 2 test processes
  [ FAIL 28 | WARN 7 | SKIP 168 | PASS 98 ]
  
  ══ Skipped tests (168) ═════════════════════════════════════════════════════════
  • For running all interactive session tests (1):
    'test-1_run_interactive_session_tests.R:1:1'
  • On CRAN (122): 'test-semlbci_wn_mg_ustd_pa_user_eq.R:1:1',
    'test-semlbci_wn_mg_ustd_cfa_user_eq.R:1:1',
    'test-semlbci_wn_mg_ustd_sem_user_eq.R:1:1',
    'test-ur_ci_bound_ur_i_mg_std_1.R:1:1',
    'test-ur_ci_bound_ur_i_mg_ustd_1.R:1:1', 'test-ur_ci_bound_ur_i_std_1.R:1:1',
    'test-ur_ci_bound_ur_i_rb_ustd_1.R:1:1',
    'test-ur_ci_bound_ur_i_ustd_1.R:1:1', 'test-ur_ci_bound_ur_mg_std_1.R:1:1',
    'test-ur_ci_bound_ur_mg_ustd_1.R:1:1', 'test-ur_ci_bound_ur_rb_ustd_1.R:1:1',
    'test-ur_ci_bound_ur_rb_mg_ustd_1.R:1:1', 'test-ur_ci_bound_ur_std_1.R:1:1',
    'test-ur_ci_bound_ur_ustd_1.R:1:1', 'test-ci_bound_wn_i_mg_rb_std_cfa.R:1:1',
    'test-ci_bound_wn_i_mg_rb_std_cfa_eq.R:1:1',
    'test-ci_bound_wn_i_mg_rb_std_cfa_user.R:1:1',
    'test-ci_bound_wn_i_mg_rb_std_cfa_user_eq.R:1:1',
    'test-ci_bound_wn_i_mg_rb_std_pa.R:1:1',
    'test-ci_bound_wn_i_mg_rb_std_pa_eq.R:1:1',
    'test-ci_bound_wn_i_mg_rb_std_pa_user.R:1:1',
    'test-ci_bound_wn_i_mg_rb_std_pa_user_eq.R:1:1',
    'test-ci_bound_wn_i_mg_rb_std_sem_eq.R:1:1',
    'test-ci_bound_wn_i_mg_rb_std_sem.R:1:1',
    'test-ci_bound_wn_i_mg_rb_std_sem_user.R:1:1',
    'test-ci_bound_wn_i_mg_rb_std_sem_user_eq.R:1:1',
    'test-ci_bound_wn_i_mg_rb_ustd_cfa.R:1:1',
    'test-ci_bound_wn_i_mg_rb_ustd_cfa_eq.R:1:1',
    'test-ci_bound_wn_i_mg_rb_ustd_cfa_user.R:1:1',
    'test-ci_bound_wn_i_mg_rb_ustd_cfa_user_eq.R:1:1',
    'test-ci_bound_wn_i_mg_rb_ustd_pa.R:1:1',
    'test-ci_bound_wn_i_mg_rb_ustd_pa_user.R:1:1',
    'test-ci_bound_wn_i_mg_rb_ustd_pa_eq.R:1:1',
    'test-ci_bound_wn_i_mg_rb_ustd_pa_user_eq.R:1:1',
    'test-ci_bound_wn_i_mg_rb_ustd_sem.R:1:1',
    'test-ci_bound_wn_i_mg_rb_ustd_sem_eq.R:1:1',
    'test-ci_bound_wn_i_mg_rb_ustd_sem_user.R:1:1',
    'test-ci_bound_wn_i_mg_rb_ustd_sem_user_eq.R:1:1',
    'test-ci_bound_wn_i_mg_std_cfa.R:1:1',
    'test-ci_bound_wn_i_mg_std_cfa_eq.R:1:1',
    'test-ci_bound_wn_i_mg_std_cfa_user.R:1:1',
    'test-ci_bound_wn_i_mg_std_cfa_user_eq.R:1:1',
    'test-ci_bound_wn_i_mg_std_pa.R:1:1',
    'test-ci_bound_wn_i_mg_std_pa_eq.R:1:1',
    'test-ci_bound_wn_i_mg_std_pa_user_eq.R:1:1',
    'test-ci_bound_wn_i_mg_std_pa_user.R:1:1',
    'test-ci_bound_wn_i_mg_std_sem.R:1:1',
    'test-ci_bound_wn_i_mg_std_sem_eq.R:1:1',
    'test-ci_bound_wn_i_mg_std_sem_user.R:1:1',
    'test-ci_bound_wn_i_mg_std_sem_user_eq.R:1:1',
    'test-ci_bound_wn_i_mg_ustd_cfa_eq.R:1:1',
    'test-ci_bound_wn_i_mg_ustd_cfa_user.R:1:1',
    'test-ci_bound_wn_i_mg_ustd_cfa_user_eq.R:1:1',
    'test-ci_bound_wn_i_mg_ustd_pa_eq.R:1:1',
    'test-ci_bound_wn_i_mg_ustd_pa_user.R:1:1',
    'test-ci_bound_wn_i_mg_ustd_pa_user_eq.R:1:1',
    'test-ci_bound_wn_i_mg_ustd_sem_eq.R:1:1',
    'test-ci_bound_wn_i_mg_ustd_sem_user.R:1:1',
    'test-ci_bound_wn_i_mg_ustd_sem_user_eq.R:1:1',
    'test-ci_bound_wn_i_rb_std_cfa.R:1:1',
    'test-ci_bound_wn_i_rb_std_cfa_eq.R:1:1',
    'test-ci_bound_wn_i_rb_std_cfa_user.R:1:1',
    'test-ci_bound_wn_i_rb_std_cfa_user_eq.R:1:1',
    'test-ci_bound_wn_i_rb_std_pa.R:1:1',
    'test-ci_bound_wn_i_rb_std_pa_eq.R:1:1',
    'test-ci_bound_wn_i_rb_std_pa_user.R:1:1',
    'test-ci_bound_wn_i_rb_std_pa_user_eq.R:1:1',
    'test-ci_bound_wn_i_rb_std_sem.R:1:1',
    'test-ci_bound_wn_i_rb_std_sem_eq.R:1:1',
    'test-ci_bound_wn_i_rb_std_sem_user.R:1:1',
    'test-ci_bound_wn_i_rb_std_sem_user_eq.R:1:1',
    'test-ci_bound_wn_i_rb_ustd_cfa.R:1:1',
    'test-ci_bound_wn_i_rb_ustd_cfa_eq.R:1:1',
    'test-ci_bound_wn_i_rb_ustd_cfa_user.R:1:1',
    'test-ci_bound_wn_i_rb_ustd_cfa_user_eq.R:1:1',
    'test-ci_bound_wn_i_rb_ustd_pa.R:1:1',
    'test-ci_bound_wn_i_rb_ustd_pa_eq.R:1:1',
    'test-ci_bound_wn_i_rb_ustd_pa_user.R:1:1',
    'test-ci_bound_wn_i_rb_ustd_pa_user_eq.R:1:1',
    'test-ci_bound_wn_i_rb_ustd_sem_eq.R:1:1',
    'test-ci_bound_wn_i_rb_ustd_sem.R:1:1',
    'test-ci_bound_wn_i_rb_ustd_sem_user.R:1:1',
    'test-ci_bound_wn_i_rb_ustd_sem_user_eq.R:1:1',
    'test-ci_bound_wn_i_std_cfa_eq.R:1:1',
    'test-ci_bound_wn_i_std_cfa_user.R:1:1',
    'test-ci_bound_wn_i_std_cfa_user_eq.R:1:1',
    'test-ci_bound_wn_i_std_pa_eq.R:1:1', 'test-ci_bound_wn_i_std_pa_user.R:1:1',
    'test-ci_bound_wn_i_std_pa_user_eq.R:1:1',
    'test-ci_bound_wn_i_std_sem_eq.R:1:1',
    'test-ci_bound_wn_i_std_sem_user.R:1:1',
    'test-ci_bound_wn_i_std_sem_user_eq.R:1:1',
    'test-ci_bound_wn_i_ustd_cfa_eq.R:1:1',
    'test-ci_bound_wn_i_ustd_cfa_user.R:1:1',
    'test-ci_bound_wn_i_ustd_pa_eq.R:1:1',
    'test-ci_bound_wn_i_ustd_pa_user.R:1:1',
    'test-ci_bound_wn_i_ustd_sem_eq.R:1:1',
    'test-ci_bound_wn_i_ustd_sem_user.R:1:1', 'test-ci_i_one_rb_std_pa.R:1:1',
    'test-ci_bound_wn_i_z_print_maxtime.R:1:1', 'test-ci_i_one_std_pa.R:1:1',
    'test-ci_i_one_std_pa_ur.R:1:1', 'test-ci_i_one_ustd_pa_ur.R:1:1',
    'test-confint_semlbci.R:1:1',
    'test-scaling_factor3_mg_rb_std_sem_user_eq.R:1:1',
    'test-scaling_factor3_mg_rb_ustd_sem_user_eq.R:1:1',
    'test-scaling_factor3_mg_wn_sem_ustd.R:1:1',
    'test-scaling_factor3_mg_wn_sem_std.R:1:1',
    'test-scaling_factor3_ustd_sem_user_eq.R:1:1',
    'test-scaling_factor3_std_sem_user_eq.R:1:1',
    'test-scaling_factor3_wn_sem_std.R:1:1',
    'test-scaling_factor3_wn_sem_ustd.R:1:1',
    'test-scaling_factor_int_comp_mg_wn_sem_std.R:1:1',
    'test-scaling_factor_int_comp_wn_sem_std.R:1:1',
    'test-semlbci_print_text.R:1:1', 'test-semlbci_rb_std_pa.R:1:1',
    'test-semlbci_std_wn.R:1:1', 'test-semlbci_std_wn_derived_parameter.R:1:1',
    'test-semlbci_std_wn_eq_constr.R:1:1',
    'test-semlbci_update_wn_mg_ustd_cfa_user_eq.R:1:1',
    'test-std_lav_one_factor.R:1:1', 'test-ur_gen_est_i.R:1:1'
  • Plots: Test in interactive sections (2): 'test-plot_likelihood.R:1:1',
    'test-plot_likelihood_ur.R:1:1'
  • Run it only if are major changes in the arguments in ci_i_* functions (1):
    'test-extra_arguments.R:1:1'
  • Run only if data changed (12): 'test-ci_bound_wn_i_mg_ustd_pa.R:39:1',
    'test-ci_bound_wn_i_mg_ustd_cfa.R:39:1',
    'test-ci_bound_wn_i_mg_ustd_sem.R:40:1', 'test-ci_bound_wn_i_std_pa.R:39:1',
    'test-ci_bound_wn_i_std_cfa.R:41:1', 'test-ci_bound_wn_i_std_sem.R:40:1',
    'test-ci_bound_wn_i_ustd_cfa.R:38:1', 'test-ci_bound_wn_i_ustd_pa.R:39:1',
    'test-ci_bound_wn_i_ustd_cfa_user_eq.R:41:1',
    'test-ci_bound_wn_i_ustd_pa_user_eq.R:41:1',
    'test-ci_bound_wn_i_ustd_sem.R:40:1',
    'test-ci_bound_wn_i_ustd_sem_user_eq.R:43:1'
  • Run only if there is a major change in std_method (18):
    'test-ci_bound_wn_i_int_comp_mg_std_cfa.R:1:1',
    'test-ci_bound_wn_i_int_comp_mg_std_cfa_user_eq.R:1:1',
    'test-ci_bound_wn_i_int_comp_mg_std_pa.R:1:1',
    'test-ci_bound_wn_i_int_comp_mg_std_pa_user_eq.R:1:1',
    'test-ci_bound_wn_i_int_comp_mg_std_sem.R:1:1',
    'test-ci_bound_wn_i_int_comp_mg_std_sem_user_eq.R:1:1',
    'test-ci_bound_wn_i_int_comp_rb_std_cfa.R:1:1',
    'test-ci_bound_wn_i_int_comp_rb_std_cfa_user_eq.R:1:1',
    'test-ci_bound_wn_i_int_comp_rb_std_pa.R:1:1',
    'test-ci_bound_wn_i_int_comp_rb_std_pa_user_eq.R:1:1',
    'test-ci_bound_wn_i_int_comp_rb_std_sem.R:1:1',
    'test-ci_bound_wn_i_int_comp_rb_std_sem_user_eq.R:1:1',
    'test-ci_bound_wn_i_int_comp_std_cfa.R:1:1',
    'test-ci_bound_wn_i_int_comp_std_cfa_user_eq.R:1:1',
    'test-ci_bound_wn_i_int_comp_std_pa.R:1:1',
    'test-ci_bound_wn_i_int_comp_std_pa_user_eq.R:1:1',
    'test-ci_bound_wn_i_int_comp_std_sem.R:1:1',
    'test-ci_bound_wn_i_int_comp_std_sem_user_eq.R:1:1'
  • Test parallel processing: Test in interactive sections (7):
    'test-semlbci_lavaan_cfa.R:1:1', 'test-semlbci_lavaan_cfa_mg.R:1:1',
    'test-semlbci_lavaan_indirect.R:1:1', 'test-semlbci_lavaan_sem.R:1:1',
    'test-semlbci_lavaan_sem_ur.R:1:1', 'test-semlbci_lavaan_sem_ur_rb.R:1:1',
    'test-semlbci_wn_parallel.R:1:1'
  • To be run in an interactive session (4): 'test-1_run_selected_tests.R:1:1',
    'test-ci_bound_wn_i_all_std.R:1:1', 'test-semlbci_nearby_rb_std.R:1:1',
    'test-ur_gen_userp.R:38:1'
  • empty test (1): 'test-ci_bound_wn_i_z_diagnostic_info.R:74:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-ci_bound_wn_i_mg_ustd_pa.R:35:5'): Check against precomputed answers ──
  out1l$bound (`actual`) not equal to 0.09563159 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.09563159)
  ── Failure ('test-ci_bound_wn_i_mg_ustd_cfa.R:35:5'): Check against precomputed answers ──
  out1l$bound (`actual`) not equal to 0.8719076 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.8719076)
  ── Failure ('test-ci_bound_wn_i_mg_ustd_cfa.R:36:5'): Check against precomputed answers ──
  out2u$bound (`actual`) not equal to 1.94076 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (1.94076)
  ── Failure ('test-ci_bound_wn_i_mg_ustd_sem.R:36:5'): Check against precomputed answers ──
  out1l$bound (`actual`) not equal to 0.8718068 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.8718068)
  ── Failure ('test-ci_bound_wn_i_mg_ustd_sem.R:37:5'): Check against precomputed answers ──
  out2u$bound (`actual`) not equal to 0.6873715 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.6873715)
  ── Failure ('test-ci_bound_wn_i_std_pa.R:35:5'): Check against precomputed answers ──
  out1l$bound (`actual`) not equal to 0.1256137 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.1256137)
  ── Failure ('test-ci_bound_wn_i_std_pa.R:36:5'): Check against precomputed answers ──
  out2u$bound (`actual`) not equal to 0.5656437 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.5656437)
  ── Failure ('test-ci_bound_wn_i_std_cfa.R:36:5'): Check against precomputed answers ──
  out1l$bound (`actual`) not equal to 0.6745196 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.6745196)
  ── Failure ('test-ci_bound_wn_i_std_cfa.R:37:5'): Check against precomputed answers ──
  out2u$bound (`actual`) not equal to 0.8769257 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.8769257)
  ── Failure ('test-ci_bound_wn_i_std_cfa.R:38:5'): Check against precomputed answers ──
  out3l$bound (`actual`) not equal to 0.4039171 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.4039171)
  ── Failure ('test-ci_bound_wn_i_std_sem.R:36:5'): Check against precomputed answers ──
  out1l$bound (`actual`) not equal to 0.6745196 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.6745196)
  ── Failure ('test-ci_bound_wn_i_std_sem.R:37:5'): Check against precomputed answers ──
  out2u$bound (`actual`) not equal to 0.6151329 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.6151329)
  ── Failure ('test-ci_bound_wn_i_ustd_cfa.R:34:5'): Check against precomputed answers ──
  out1l$bound (`actual`) not equal to 1.044513 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (1.044513)
  ── Failure ('test-ci_bound_wn_i_ustd_cfa.R:35:5'): Check against precomputed answers ──
  out2u$bound (`actual`) not equal to 1.391671 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (1.391671)
  ── Failure ('test-ci_bound_wn_i_ustd_pa.R:35:5'): Check against precomputed answers ──
  out1l$bound (`actual`) not equal to 0.7866848 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.7866848)
  ── Failure ('test-ci_bound_wn_i_ustd_pa.R:36:5'): Check against precomputed answers ──
  out2u$bound (`actual`) not equal to 0.6864138 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.6864138)
  ── Failure ('test-ci_bound_wn_i_ustd_cfa_user_eq.R:37:5'): Check against precomputed answers ──
  out1l$bound (`actual`) not equal to 0.6211464 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.6211464)
  ── Failure ('test-ci_bound_wn_i_ustd_cfa_user_eq.R:38:5'): Check against precomputed answers ──
  out1u$bound (`actual`) not equal to 1.230061 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (1.230061)
  ── Failure ('test-ci_bound_wn_i_ustd_pa_user_eq.R:37:5'): Check against precomputed answers ──
  out1l$bound (`actual`) not equal to 0.4172761 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.4172761)
  ── Failure ('test-ci_bound_wn_i_ustd_pa_user_eq.R:38:5'): Check against precomputed answers ──
  out2u$bound (`actual`) not equal to 0.5131228 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.5131228)
  ── Failure ('test-ci_bound_wn_i_ustd_sem.R:36:5'): Check against precomputed answers ──
  out1l$bound (`actual`) not equal to 1.044513 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (1.044513)
  ── Failure ('test-ci_bound_wn_i_ustd_sem.R:37:5'): Check against precomputed answers ──
  out2u$bound (`actual`) not equal to 0.5081693 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.5081693)
  ── Failure ('test-ci_bound_wn_i_ustd_sem_user_eq.R:39:5'): Check against precomputed answers ──
  out1l$bound (`actual`) not equal to 0.9261166 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.9261166)
  ── Failure ('test-ci_bound_wn_i_ustd_sem_user_eq.R:40:5'): Check against precomputed answers ──
  out2u$bound (`actual`) not equal to 0.9509614 (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.9509614)
  ── Failure ('test-ci_i_one_rb_ustd_pa.R:46:5'): Check with know results ────────
  unname(out1x$bounds) (`actual`) not equal to c(0.6756703) (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.6756703)
  ── Failure ('test-ci_i_one_rb_ustd_pa.R:47:5'): Check with know results ────────
  unname(out2x$bounds) (`actual`) not equal to c(0.6734225) (`expected`).
  
  `actual` is a logical vector (NA)
  `expected` is a double vector (0.6734225)
  ── Error ('test-semlbci_rb_ustd_pa.R:142:5'): Check p-value for the chi-square difference test ──
  Error in `if (all(mods.scaled | ndf == 0) && any(mods.scaled)) {
      scaled <- TRUE
      scaledList <- sapply(mods[[which(ndf > 0)[1]]]@test, function(x) !is.null(x$scaled.test.stat))
      scaled.idx <- which(scaledList)[[1]]
      default.TEST <- object@test[[scaled.idx]]$test
      if (test == "default") {
          TEST <- default.TEST
      }
      else if (!test %in% c("satorra.bentler", "yuan.bentler", 
          "yuan.bentler.mplus", "mean.var.adjusted", "scaled.shifted")) {
          lav_msg_stop(gettextf("test = %s not found in object. See available tests in\n        lavInspect(object, \"options\")$test.", 
              dQuote(test)))
      }
      else TEST <- test
      check.scaled <- unlist(lapply(mods, function(x) {
          TEST %in% unlist(sapply(slot(x, "test"), "[[", "test"))
      }))
      if (any(!check.scaled)) {
          lav_msg_stop(gettextf("test = %1$s not found in model(s): %2$s. Find available tests per model\n        using lavInspect(fit, \"options\")$test.", 
              dQuote(test), lav_msg_view(names(mods)[which(!check.scaled)], 
                  "none")))
      }
  } else if (!any(mods.scaled)) {
      scaled <- FALSE
      TEST <- "standard"
      method <- "standard"
  } else {
      lav_msg_stop(gettext("some models (but not all) have scaled test statistics"))
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─testthat::expect_true(...) at test-semlbci_rb_ustd_pa.R:142:5
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─semlbci:::test_p(fitc_out1l, fit, ciperc = ciperc, tol = 1e-04)
   5.   └─lavaan::lavTestLRT(fit0, fit1, method = "satorra.2000", A.method = "exact")
  ── Error ('test-semlbci_rb_ustd_pa.R:149:1'): (code run outside of `test_that()`) ──
  Error in `if (any(STAT.delta[-1] < -1 * .Machine$double.eps^(1/3))) {
      lav_msg_warn(gettextf("Some restricted models fit better than less restricted models; either\n      these models are not nested, or the less restricted model failed to reach\n      a global optimum.Smallest difference = %s.", 
          min(STAT.delta[-1])))
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. └─semlbci:::test_constr(...) at test-semlbci_rb_ustd_pa.R:149:1
   2.   ├─lavaan::anova(fitc, fit)
   3.   └─lavaan::anova(fitc, fit)
   4.     └─lavaan::lavTestLRT(object = object, ..., model.names = tmp.names)
  
  [ FAIL 28 | WARN 7 | SKIP 168 | PASS 98 ]
  Error: Test failures
  Execution halted