Running ‘testthat.R’ [10s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bigstep)
  > 
  > test_check("bigstep")
  ── 1. Failure: Right variable to remove (@test_backward.R#18)  ─────────────────
  res$Xm not equal to `Xm`.
  Lengths differ: 150 is not 120
  
  ── 2. Failure: Right variable to remove (@test_backward.R#19)  ─────────────────
  res$model not equal to c("b", "c", "f").
  Lengths differ: 4 is not 3
  
  ── 3. Failure: Right variable to remove (@test_backward.R#20)  ─────────────────
  res$crit not equal to `bic_v`.
  1/1 mismatches
  [1] 6.56 - 8.81 == -2.24
  
  ── 4. Failure: Right variable to remove (@test_backward.R#21)  ─────────────────
  `backward(d, crit = bic)` produced unexpected messages.
  Expected match: Variable g removed with crit = 
  Actual values:
  * There are no variables reducing crit.
  
  
  ── 5. Failure: Right variable to remove (@test_backward.R#25)  ─────────────────
  `backward(d, crit = bic)` produced unexpected messages.
  Expected match: Variable g removed with crit = 
  Actual values:
  * There are no variables reducing crit.
  
  
  ── 6. Failure: Right variables to remove (@test_backward.R#41)  ────────────────
  res$Xm not equal to `Xm`.
  Lengths differ: 150 is not 120
  
  ── 7. Failure: Right variables to remove (@test_backward.R#42)  ────────────────
  res$model not equal to c("b", "c", "f").
  Lengths differ: 4 is not 3
  
  ── 8. Failure: Right variables to remove (@test_backward.R#43)  ────────────────
  res$crit not equal to `bic_v`.
  1/1 mismatches
  [1] 6.56 - 8.81 == -2.24
  
  ── 9. Failure: Right variables to remove (@test_backward.R#46)  ────────────────
  multi_backward(d, crit = bic)$Xm not equal to Xm[, c(1, 3:4)].
  Lengths differ: 120 is not 90
  
  ── 10. Failure: Right variables to remove (@test_backward.R#49)  ───────────────
  multi_backward(d, crit = bic)$Xm not equal to Xm[, 1, drop = FALSE].
  Lengths differ: 60 is not 30
  
  ── 11. Failure: Right variables to remove (@test_backward.R#51)  ───────────────
  multi_backward(d, crit = bic)$Xm not equal to Xm[, 1:2].
  Lengths differ: 30 is not 60
  
  ── 12. Failure: Right variables to remove (@test_backward.R#57)  ───────────────
  multi_backward(d, crit = bic)$Xm not equal to cbind(1, X[, c(1:4, 6)]).
  Lengths differ: 210 is not 180
  
  ── 13. Failure: Right variable to add (@test_forward.R#24)  ────────────────────
  forward(d, crit = bic)$model not equal to c("2", "3", "6").
  Lengths differ: 4 is not 3
  
  ── 14. Failure: Right variable to add (@test_forward.R#28)  ────────────────────
  forward(d, crit = bic)$model not equal to c("2", "3").
  Lengths differ: 3 is not 2
  
  ── 15. Failure: Right variable to add (@test_forward.R#42)  ────────────────────
  res$model not equal to c("V1", "V2", "2").
  1/3 mismatches
  x[3]: "6"
  y[3]: "2"
  
  ── 16. Failure: Right variables to add (@test_forward.R#56)  ───────────────────
  colnames(res$Xm)[-1] not equal to c("2", "3", "6").
  3/3 mismatches
  x[1]: "3"
  y[1]: "2"
  
  x[2]: "6"
  y[2]: "3"
  
  x[3]: "7"
  y[3]: "6"
  
  ── 17. Failure: Right variables to add (@test_forward.R#65)  ───────────────────
  res$model not equal to c("V1", "V2", "2", "6").
  Lengths differ: 5 is not 4
  
  ── 18. Failure: Rare situations (@test_forward.R#70)  ──────────────────────────
  colnames(fast_forward(d, maxf = 2)$Xm)[-1] not equal to c("2", "3").
  2/2 mismatches
  x[1]: "3"
  y[1]: "2"
  
  x[2]: "6"
  y[2]: "3"
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 190 SKIPPED: 0 FAILED: 18
  1. Failure: Right variable to remove (@test_backward.R#18) 
  2. Failure: Right variable to remove (@test_backward.R#19) 
  3. Failure: Right variable to remove (@test_backward.R#20) 
  4. Failure: Right variable to remove (@test_backward.R#21) 
  5. Failure: Right variable to remove (@test_backward.R#25) 
  6. Failure: Right variables to remove (@test_backward.R#41) 
  7. Failure: Right variables to remove (@test_backward.R#42) 
  8. Failure: Right variables to remove (@test_backward.R#43) 
  9. Failure: Right variables to remove (@test_backward.R#46) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted