Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [82s/118s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(insight)
  > 
  > if (length(strsplit(packageDescription("insight")$Version, "\\.")[[1]]) > 3) {
  +   Sys.setenv("RunAllinsightTests" = "yes")
  + } else {
  +   Sys.setenv("RunAllinsightTests" = "no")
  + }
  > 
  > test_check("insight")
  GAM s.wam loop 1: deviance = 66.42095 
  GAM s.wam loop 2: deviance = 63.77252 
  GAM s.wam loop 3: deviance = 63.25199 
  GAM s.wam loop 4: deviance = 63.13399 
  GAM s.wam loop 5: deviance = 63.11016 
  GAM s.wam loop 6: deviance = 63.10748 
  GAM s.wam loop 7: deviance = 63.10727 
  GAM s.wam loop 8: deviance = 63.10725 
  GAM s.wam loop 9: deviance = 63.10725 
  GAMLSS-RS iteration 1: Global Deviance = 4771.925 
  GAMLSS-CG iteration 1: Global Deviance = 4771.013 
  GAMLSS-CG iteration 2: Global Deviance = 4770.994 
  GAMLSS-CG iteration 3: Global Deviance = 4770.994 
  Gu & Wahba 4 term additive model
  (Intercept)    tensionM    tensionH 
     36.38889   -10.00000   -14.72222 
  Warning: Data frame is empty, probably component 'all' does not exist in the random-part of the model?
  Warning: Data frame is empty, probably you have an intercept-only model?
  Warning: Data frame is empty, probably component 'dispersion' does not exist in the random-part of the model?
  Estimating SMNL model 
  ── 1. Error: (unknown) (@test-mixed.R#18)  ─────────────────────────────────────
  subscript out of bounds
  Backtrace:
   1. afex::mixed(Reaction ~ Days + (1 + Days | Subject), data = sleepstudy)
  
  # weights:  6 (5 variable)
  initial  value 131.004817 
  iter  10 value 108.535568
  final  value 108.535541 
  converged
  VGLM    linear loop  1 :  deviance = 5.181115
  VGLM    linear loop  2 :  deviance = 5.129147
  VGLM    linear loop  3 :  deviance = 5.129141
  VGLM    linear loop  4 :  deviance = 5.129141
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 1861 | SKIPPED: 5 | WARNINGS: 5 | FAILED: 1 ]
  1. Error: (unknown) (@test-mixed.R#18) 
  
  Error: testthat unit tests failed
  Execution halted