Running 'testthat.R' [340s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(insight)
  > test_check("insight")
  Loading required namespace: httptest2
  Saving _problems/test-find_random-31.R
  Saving _problems/test-find_smooth-34.R
  boundary (singular) fit: see help('isSingular')
  GAMLSS-RS iteration 1: Global Deviance = 365.2328 
  GAMLSS-RS iteration 2: Global Deviance = 365.1292 
  GAMLSS-RS iteration 3: Global Deviance = 365.1269 
  GAMLSS-RS iteration 4: Global Deviance = 365.1268 
  GAMLSS-RS iteration 1: Global Deviance = 5779.746 
  GAMLSS-RS iteration 2: Global Deviance = 5779.746 
  GAMLSS-RS iteration 1: Global Deviance = 703.1164 
  GAMLSS-RS iteration 2: Global Deviance = 703.1164 
  Saving _problems/test-gamm4-9.R
  Saving _problems/test-get_datagrid-355.R
  Loading required namespace: GPArotation
  boundary (singular) fit: see help('isSingular')
  iteration 1
  boundary (singular) fit: see help('isSingular')
  boundary (singular) fit: see help('isSingular')
  
  Re-fitting to get Hessian
  
  
  Re-fitting to get Hessian
  
  [ FAIL 4 | WARN 0 | SKIP 104 | PASS 3258 ]
  
  ══ Skipped tests (104) ═════════════════════════════════════════════════════════
  • On CRAN (89): 'test-GLMMadaptive.R:2:1', 'test-averaging.R:1:1',
    'test-betareg.R:197:5', 'test-bias_correction.R:1:1', 'test-blmer.R:1:1',
    '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:109:3', 'test-clean_parameters.R:1:1',
    'test-clmm.R:170:3', 'test-coxme.R:1:1', 'test-cpglmm.R:152:3',
    'test-export_table.R:6:3', 'test-export_table.R:18:3',
    'test-export_table.R:152:3', 'test-export_table.R:273:3',
    'test-export_table.R:327:1', 'test-export_table.R:814:3',
    'test-export_table.R:858:3', 'test-export_table.R:918:1',
    'test-export_table.R:939:3', 'test-export_table.R:1003:3',
    'test-find_random.R:43:3', 'test-find_smooth.R:39:3', 'test-fixest.R:2:1',
    'test-format_table.R:2:1', 'test-format_table_ci.R:73:3', 'test-gam.R:2:1',
    'test-get_data.R:507:1', 'test-get_datagrid.R:1092:3',
    'test-get_datagrid.R:1129:5', 'test-get_loglikelihood.R:143:3',
    'test-get_loglikelihood.R:223:3', 'test-get_loglikelihood.R:320:3',
    'test-get_predicted.R:2:1', 'test-get_priors.R:1:1',
    'test-get_residuals.R:71:3', 'test-get_residuals.R:100:3',
    'test-get_simulated.R:151:3', 'test-get_varcov.R:43:3',
    'test-get_varcov.R:57:3', 'test-glmmTMB.R:67:3', 'test-glmmTMB.R:767:3',
    'test-glmmTMB.R:803:3', 'test-glmmTMB.R:1142:3', 'test-is_converged.R:47:1',
    'test-iv_robust.R:120:3', 'test-lavaan.R:1:1', 'test-lcmm.R:1:1',
    'test-lme.R:28:3', 'test-lme.R:212:3', 'test-marginaleffects.R:1:1',
    'test-mgcv.R:1:1', 'test-mipo.R:1:1', 'test-mira.R:1:1', 'test-mlogit.R:1:1',
    'test-model_info.R:106:3', 'test-modelbased.R:1:1', 'test-mvrstanarm.R:1:1',
    'test-null_model.R:85:3', 'test-phylolm.R:1: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-rms.R:1:1', '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-tidymodels.R:1:1', 'test-vcov_fpc.R:1:1',
    'test-vgam.R:2:1', 'test-weightit.R:1:1'
  • TRUE is TRUE (1): 'test-feis.R:3:1'
  • Works only interactively (1): 'test-get_simulated.R:422:3'
  • 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'
  • {mmrm} cannot be loaded (1): 'test-mmrm.R:1:1'
  • {nestedLogit} cannot be loaded (1): 'test-nestedLogit.R:1:1'
  • {panelr} cannot be loaded (2): 'test-panelr-asym.R:1:1', 'test-panelr.R:1:1'
  • {rms} cannot be loaded (2): 'test-ols.R:1:1', 'test-psm.R:1:1'
  • {robustlmm} cannot be loaded (1): 'test-rlmer.R:1:1'
  • {rstpm2} cannot be loaded (1): 'test-rstpm2.R:1:1'
  • {survey} cannot be loaded (2): 'test-survey.R:1:1', 'test-survey_coxph.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-find_random.R:27:3'): find_random - gamm4::gamm4 ───────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'which': invalid 'x': type "S4"
  Backtrace:
      ▆
   1. ├─gamm4::gamm4(...) at test-find_random.R:27:3
   2. │ └─gamm4:::getVb(...)
   3. │   ├─base::which(diag(phi) < .Machine$double.eps^0.9 * norm(phi))
   4. │   ├─methods (local) norm(phi)
   5. │   └─methods (local) norm(phi)
   6. │     └─base::norm(x, type = "O", ...)
   7. │       └─base::stop(...)
   8. └─base::.handleSimpleError(...)
   9.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-find_smooth.R:30:3'): find_smooth - gamm4 ──────────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'which': invalid 'x': type "S4"
  Backtrace:
      ▆
   1. ├─gamm4::gamm4(...) at test-find_smooth.R:30:3
   2. │ └─gamm4:::getVb(...)
   3. │   ├─base::which(diag(phi) < .Machine$double.eps^0.9 * norm(phi))
   4. │   ├─methods (local) norm(phi)
   5. │   └─methods (local) norm(phi)
   6. │     └─base::norm(x, type = "O", ...)
   7. │       └─base::stop(...)
   8. └─base::.handleSimpleError(...)
   9.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-gamm4.R:9:1'): (code run outside of `test_that()`) ─────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'which': invalid 'x': type "S4"
  Backtrace:
      ▆
   1. ├─gamm4::gamm4(...) at test-gamm4.R:9:1
   2. │ └─gamm4:::getVb(...)
   3. │   ├─base::which(diag(phi) < .Machine$double.eps^0.9 * norm(phi))
   4. │   ├─methods (local) norm(phi)
   5. │   └─methods (local) norm(phi)
   6. │     └─base::norm(x, type = "O", ...)
   7. │       └─base::stop(...)
   8. └─base::.handleSimpleError(...)
   9.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-get_datagrid.R:351:3'): get_datagrid - models ──────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'which': invalid 'x': type "S4"
  Backtrace:
      ▆
   1. ├─gamm4::gamm4(...) at test-get_datagrid.R:351:3
   2. │ └─gamm4:::getVb(...)
   3. │   ├─base::which(diag(phi) < .Machine$double.eps^0.9 * norm(phi))
   4. │   ├─methods (local) norm(phi)
   5. │   └─methods (local) norm(phi)
   6. │     └─base::norm(x, type = "O", ...)
   7. │       └─base::stop(...)
   8. └─base::.handleSimpleError(...)
   9.   └─base (local) h(simpleError(msg, call))
  
  [ FAIL 4 | WARN 0 | SKIP 104 | PASS 3258 ]
  Error:
  ! Test failures.
  Execution halted