Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [85s/124s]
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")
  ── 1. Error: (unknown) (@test-BayesFactorBF.R#76)  ─────────────────────────────
  second argument must be a list
  Backtrace:
   1. BayesFactor::anovaBF(len ~ supp * dose, data = ToothGrowth)
   2. base::do.call("c", bfs)
  
  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 
  ── 2. Failure: find_predictors (@test-iv_robust.R#14)  ─────────────────────────
  find_predictors(m1) not identical to list(...).
  Component "conditional": Lengths (4, 2) differ (string compare on first 2)
  Component "instruments": Lengths (5, 2) differ (string compare on first 2)
  Component "instruments": 2 string mismatches
  
  ── 3. Failure: find_predictors (@test-iv_robust.R#21)  ─────────────────────────
  find_predictors(m1, component = "instruments") not identical to list(instruments = c("carb", "wt")).
  Component "instruments": Lengths (5, 2) differ (string compare on first 2)
  Component "instruments": 2 string mismatches
  
  ── 4. Failure: find_predictors (@test-iv_robust.R#25)  ─────────────────────────
  find_predictors(m1, flatten = TRUE) not identical to c("gear", "cyl", "carb", "wt").
  Lengths differ: 5 is not 4
  
  ── 5. Failure: get_predictors (@test-iv_robust.R#49)  ──────────────────────────
  colnames(get_predictors(m1)) not equal to c("gear", "cyl", "carb", "wt").
  Lengths differ: 5 is not 4
  
  ── 6. Failure: find_formula (@test-iv_robust.R#62)  ────────────────────────────
  find_formula(m1) not equal to list(conditional = as.formula("mpg ~ gear + cyl"), instruments = as.formula("~carb + wt")).
  Component "conditional": formulas differ in contents
  Component "instruments": target, current differ in having response: TRUE, FALSE
  
  ── 7. Failure: find_terms (@test-iv_robust.R#72)  ──────────────────────────────
  find_terms(m1) not equal to list(...).
  Component "conditional": Lengths (4, 2) differ (string compare on first 2)
  Component "instruments": Lengths (4, 2) differ (string compare on first 2)
  Component "instruments": 2 string mismatches
  
  ── 8. Failure: find_terms (@test-iv_robust.R#80)  ──────────────────────────────
  find_terms(m1, flatten = TRUE) not equal to c("mpg", "gear", "cyl", "carb", "wt").
  Lengths differ: 6 is not 5
  
  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
  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: 1926 | SKIPPED: 5 | WARNINGS: 6 | FAILED: 8 ]
  1. Error: (unknown) (@test-BayesFactorBF.R#76) 
  2. Failure: find_predictors (@test-iv_robust.R#14) 
  3. Failure: find_predictors (@test-iv_robust.R#21) 
  4. Failure: find_predictors (@test-iv_robust.R#25) 
  5. Failure: get_predictors (@test-iv_robust.R#49) 
  6. Failure: find_formula (@test-iv_robust.R#62) 
  7. Failure: find_terms (@test-iv_robust.R#72) 
  8. Failure: find_terms (@test-iv_robust.R#80) 
  
  Error: testthat unit tests failed
  Execution halted