Running ‘testthat.R’ [51s/75s]
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 
  Gu & Wahba 4 term additive model
  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 
  4 term additive + random effectGu & Wahba 4 term additive model
  
   Maximum number of PQL iterations:  20 
  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 
  Fitting one lmer() model. [DONE]
  Calculating p-values. [DONE]
  Fitting one lmer() model. [DONE]
  Calculating p-values. [DONE]
  # weights:  6 (5 variable)
  initial  value 131.004817 
  iter  10 value 108.535568
  final  value 108.535541 
  converged
  ── 1. Error: (unknown) (@test-panelr.R#7)  ─────────────────────────────────────
  object 'ranef_forms' not found
  1: wbm(lwage ~ lag(union) + wks | blk + fem | blk * (t | union), data = wages) at testthat/test-panelr.R:7
  2: wb_prepare_data(formula = formula, data = data, id = id, wave = wave, model = model, 
         detrend = detrend, use.wave = use.wave, wave.factor = wave.factor, min.waves = min.waves, 
         balance_correction = balance.correction, dt_random = dt.random, dt_order = dt.order, 
         weights = !!enquo(weights), offset = !!enquo(offset), demean.ints = interaction.style == 
             "double-demean", old.ints = interaction.style == "demean")
  3: wb_formula_parser(formula, dv, data)
  4: paste(ranef_forms, collapse = " + ")
  
  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: 1737 SKIPPED: 7 WARNINGS: 70 FAILED: 1
  1. Error: (unknown) (@test-panelr.R#7) 
  
  Error: testthat unit tests failed
  Execution halted