Running ‘testthat.R’ [9m/12m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(insight)
  > test_check("insight")
  Starting 2 test processes
  [ FAIL 2 | WARN 0 | SKIP 90 | PASS 3436 ]
  
  ══ Skipped tests (90) ══════════════════════════════════════════════════════════
  • On CRAN (82): 'test-GLMMadaptive.R:2:1', 'test-averaging.R:3:1',
    'test-bias_correction.R:1:1', 'test-blmer.R:249:3', 'test-brms.R:1:1',
    'test-brms_aterms.R:1:1', 'test-brms_gr_random_effects.R:1:1',
    'test-brms_missing.R:1:1', 'test-brms_mm.R:1:1', 'test-brms_von_mises.R:1:1',
    'test-clean_names.R:103:3', 'test-clean_parameters.R:1:1',
    'test-coxme.R:7:1', 'test-cpglmm.R:145:3', 'test-clmm.R:165:3',
    'test-display.R:10:3', 'test-display.R:32:3', 'test-export_table.R:4:3',
    'test-export_table.R:8:3', 'test-export_table.R:106:3',
    'test-export_table.R:133:3', 'test-export_table.R:164:3',
    'test-export_table.R:192:3', 'test-export_table.R:204:3',
    'test-export_table.R:232:3', 'test-export_table.R:292:3',
    'test-export_table.R:309:3', 'test-export_table.R:372:3',
    'test-find_smooth.R:31:3', 'test-find_random.R:27:3',
    'test-format_table.R:2:1', 'test-format_table_ci.R:71:3', 'test-gam.R:2:1',
    'test-get_data.R:385:1', 'test-get_loglikelihood.R:94:3',
    'test-get_loglikelihood.R:159:3', 'test-get_predicted.R:2:1',
    'test-get_priors.R:3:3', 'test-get_priors.R:18:3', 'test-get_varcov.R:40:3',
    'test-get_datagrid.R:692:3', 'test-is_converged.R:28:1',
    'test-iv_robust.R:120:3', 'test-lavaan.R:1:1', 'test-lme.R:34:3',
    'test-lme.R:210:3', 'test-glmmTMB.R:71:3', 'test-glmmTMB.R:755:3',
    'test-glmmTMB.R:787:3', 'test-glmmTMB.R:1095:3',
    'test-marginaleffects.R:1:1', 'test-mgcv.R:1:1', 'test-mipo.R:1:1',
    'test-mlogit.R:2:1', 'test-model_info.R:110:3', 'test-mvrstanarm.R:1:1',
    'test-null_model.R:71:3', 'test-panelr-asym.R:142:3', 'test-panelr.R:272:3',
    'test-phylolm.R:5:1', 'test-print_parameters.R:1:1',
    'test-r2_nakagawa_bernoulli.R:1:1', 'test-r2_nakagawa_beta.R:1:1',
    'test-r2_nakagawa_binomial.R:1:1', 'test-r2_nakagawa_gamma.R:1:1',
    'test-r2_nakagawa_linear.R:1:1', 'test-r2_nakagawa_negbin.R:1:1',
    'test-r2_nakagawa_negbin_zi.R:1:1', 'test-r2_nakagawa_ordered_beta.R:1:1',
    'test-r2_nakagawa_poisson.R:1:1', 'test-r2_nakagawa_poisson_zi.R:1:1',
    'test-r2_nakagawa_truncated_poisson.R:1:1', 'test-r2_nakagawa_tweedie.R:1:1',
    'test-rlmer.R:259:3', 'test-rqss.R:1:1', 'test-rstanarm.R:1:1',
    'test-sdmTMB.R:1:1', 'test-selection.R:2:1', 'test-spatial.R:2:1',
    'test-svylme.R:1:1', 'test-vgam.R:2:1', 'test-weightit.R:1:1'
  • On Linux (3): 'test-BayesFactorBF.R:1:1', 'test-MCMCglmm.R:1:1',
    'test-get_data.R:150:3'
  • Package `logistf` is loaded and breaks `mmrm::mmrm()` (1): 'test-mmrm.R:4:1'
  • TRUE is TRUE (1): 'test-fixest.R:2:1'
  • works interactively (2): 'test-coxph-panel.R:34:3', 'test-coxph.R:38:3'
  • {bigglm} is not installed (1): 'test-model_info.R:24:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-get_datagrid.R:352:3'): get_datagrid - marginaleffects ───────
  dim(res) (`actual`) not identical to c(6L, 2L) (`expected`).
  
    `actual`: 6 0
  `expected`: 6 2
  ── Error ('test-get_datagrid.R:353:3'): get_datagrid - marginaleffects ─────────
  <subscriptOutOfBoundsError/error/condition>
  Error in `.subset2(x, i, exact = exact)`: subscript out of bounds
  Backtrace:
      ▆
   1. ├─testthat::expect_true(all(c(4, 6, 8) %in% res[[1]])) at test-get_datagrid.R:353:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─c(4, 6, 8) %in% res[[1]]
   5. ├─res[[1]]
   6. └─base::`[[.data.frame`(res, 1)
   7.   └─(function(x, i, exact) if (is.matrix(i)) as.matrix(x)[[i]] else .subset2(x, ...
  
  [ FAIL 2 | WARN 0 | SKIP 90 | PASS 3436 ]
  Error: Test failures
  Execution halted