Running ‘testthat.R’ [32s/48s]
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 
  ── 1. Failure: find_predictors (@test-felm.R#21)  ──────────────────────────────
  find_predictors(m1) not identical to list(conditional = c("x", "x2"), instruments = c("id", "firm")).
  Component "conditional": Lengths (4, 2) differ (string compare on first 2)
  
  ── 2. Failure: find_response (@test-felm.R#34)  ────────────────────────────────
  find_response(m1) not identical to "y".
  1/1 mismatches
  x[1]: "yy"
  y[1]: "y"
  
  ── 3. Failure: get_response (@test-felm.R#38)  ─────────────────────────────────
  get_response(m1) not equal to dat$y.
  target is NULL, current is numeric
  
  ── 4. Failure: find_formula (@test-felm.R#56)  ─────────────────────────────────
  find_formula(m1) not equal to list(conditional = as.formula("y ~ x + x2"), instruments = as.formula("~id + firm")).
  Component "conditional": formulas differ in contents
  
  ── 5. Failure: find_terms (@test-felm.R#66)  ───────────────────────────────────
  find_terms(m1) not equal to list(...).
  Component "response": 1 string mismatch
  Component "conditional": Lengths (4, 2) differ (string compare on first 2)
  
  ── 6. Failure: find_terms (@test-felm.R#67)  ───────────────────────────────────
  find_terms(m1, flatten = TRUE) not equal to c("y", "x", "x2", "id", "firm").
  1/5 mismatches
  x[1]: "yy"
  y[1]: "y"
  
  Gu & Wahba 4 term additive model
  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 
  Estimating SMNL model 
  # 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: 964 SKIPPED: 1 FAILED: 6
  1. Failure: find_predictors (@test-felm.R#21) 
  2. Failure: find_response (@test-felm.R#34) 
  3. Failure: get_response (@test-felm.R#38) 
  4. Failure: find_formula (@test-felm.R#56) 
  5. Failure: find_terms (@test-felm.R#66) 
  6. Failure: find_terms (@test-felm.R#67) 
  
  Error: testthat unit tests failed
  Execution halted