Running ‘testthat.R’ [52s/57s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(jtools)
  > 
  > 
  > test_check("jtools")
  ── 1. Error: Export doesn't fail with lm (@test-export-summs.R#47)  ────────────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(export_summs(fit, fit2, fitw), "huxtable")
    4. jtools::export_summs(fit, fit2, fitw)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 2. Error: Export accepts named list input (@test-export-summs.R#51)  ────────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(...)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 3. Error: Export uses statistics = 'all' argument (@test-export-summs.R#56)  
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(fit, fit2, fitw, statistics = "all")
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 4. Error: Export works with no summ/huxtable args (@test-export-summs.R#60)  
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(fit, fit2, fitw, statistics = "all", confint = TRUE)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 5. Error: Export accepts summ args with lm (@test-export-summs.R#65)  ───────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(fit, fit2, fitw, scale = T, robust = T)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 6. Error: Export accepts huxreg args with lm (@test-export-summs.R#70)  ─────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(fit, fit2, fitw, align = ",")
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 7. Error: Export accepts huxreg and summ args with lm (@test-export-summs.R#7
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(...)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 8. Error: Export doesn't fail with glm (@test-export-summs.R#81)  ───────────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(export_summs(pmod), "huxtable")
    4. jtools::export_summs(pmod)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 9. Error: Export accepts summ args with glm (@test-export-summs.R#85)  ──────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(pmod, scale = T, robust = T)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 10. Error: Export accepts huxreg args with glm (@test-export-summs.R#90)  ───
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(export_summs(pmod, align = ","), "huxtable")
    4. jtools::export_summs(pmod, align = ",")
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 11. Error: Export accepts huxreg and summ args with glm (@test-export-summs.R
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(pmod, align = ",", robust = T)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 12. Error: Export doesn't fail with svyglm (@test-export-summs.R#101)  ──────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(regmodel, statistics = c(N = "nobs"))
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 13. Error: Export accepts summ args with svyglm (@test-export-summs.R#105)  ─
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(export_summs(regmodel, scale = T), "huxtable")
    4. jtools::export_summs(regmodel, scale = T)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 14. Error: Export accepts huxreg args with svyglm (@test-export-summs.R#109) 
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(regmodel, align = ",", statistics = c(N = "nobs"))
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 15. Error: Export accepts huxreg and summ args with svyglm (@test-export-summ
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(regmodel, align = ",", scale = T)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 16. Error: Export doesn't fail with merMod (@test-export-summs.R#121)  ──────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(export_summs(mv), "huxtable")
    4. jtools::export_summs(mv)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 17. Error: Export accepts summ args with merMod (@test-export-summs.R#125)  ─
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(export_summs(mv, scale = T), "huxtable")
    4. jtools::export_summs(mv, scale = T)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 18. Error: Export accepts huxreg args with merMod (@test-export-summs.R#130) 
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(export_summs(mv, align = ","), "huxtable")
    4. jtools::export_summs(mv, align = ",")
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 19. Error: Export accepts huxreg and summ args with merMod (@test-export-summ
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(mv, align = ",", scale = T)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 20. Error: Export can do confidence intervals (merMod) (@test-export-summs.R#
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(mv, error_format = "95% CI [{conf.low}, {conf.high}]")
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 21. Error: Export can do confidence intervals (lm) (@test-export-summs.R#146)
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(fit, fitw, error_format = "CI [{conf.low}, {conf.high}]")
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 22. Error: Export can do confidence intervals (glm) (@test-export-summs.R#152
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(pmod, error_format = "CI [{conf.low}, {conf.high}]")
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 23. Error: Export can do confidence intervals (svyglm) (@test-export-summs.R#
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(regmodel, error_format = "CI [{conf.low}, {conf.high}]")
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 24. Error: Export can take manual coefficient names (@test-export-summs.R#166
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(...)
    4. jtools::export_summs(...)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 25. Error: export_summs et al. (@test-quantreg.R#52)  ───────────────────────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_is(export_summs(rfit, rfiti), "huxtable")
    4. jtools::export_summs(rfit, rfiti)
    7. huxtable::add_footnote(result, note, border = 0)
    9. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   10. huxtable:::check_span_shadows(ht, "col", value)
   11. huxtable:::display_cells(ht, new_colspan = value)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 323 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 25 ]
  1. Error: Export doesn't fail with lm (@test-export-summs.R#47) 
  2. Error: Export accepts named list input (@test-export-summs.R#51) 
  3. Error: Export uses statistics = 'all' argument (@test-export-summs.R#56) 
  4. Error: Export works with no summ/huxtable args (@test-export-summs.R#60) 
  5. Error: Export accepts summ args with lm (@test-export-summs.R#65) 
  6. Error: Export accepts huxreg args with lm (@test-export-summs.R#70) 
  7. Error: Export accepts huxreg and summ args with lm (@test-export-summs.R#75) 
  8. Error: Export doesn't fail with glm (@test-export-summs.R#81) 
  9. Error: Export accepts summ args with glm (@test-export-summs.R#85) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted