Running ‘testthat.R’ [32s/36s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(huxtable)
  > 
  > 
  > we_are_in_R_CMD_check <- TRUE
  > test_check("huxtable")
  ── 1. Failure: huxreg copes with different models (@test-huxreg.R#31)  ─────────
  `hr <- huxreg(lm1, lm2, glm1)` threw an error.
  Message: subscript out of bounds
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(hr <- huxreg(lm1, lm2, glm1), regexp = NA)
    6. huxtable::huxreg(lm1, lm2, glm1)
    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: huxreg confidence intervals work (@test-huxreg.R#46)  ─────────────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_silent(...)
    9. huxtable::huxreg(...)
   10. huxtable::add_footnote(result, note, border = 0)
   12. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   13. huxtable:::check_span_shadows(ht, "col", value)
   14. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 3. Failure: huxreg confidence intervals work when tidy c.i.s not available (@
  `huxreg(...)` threw an error.
  Message: subscript out of bounds
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    6. huxtable::huxreg(...)
    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: huxreg error_style usage (@test-huxreg.R#69)  ─────────────────────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_warning(...)
    6. huxtable::huxreg(lm1, error_style = "stderr")
    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. Failure: huxreg works with single coefficient (@test-huxreg.R#81)  ───────
  `huxreg(lm1, lm2, coefs = "a")` threw an error.
  Message: subscript out of bounds
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(huxreg(lm1, lm2, coefs = "a"), regexp = NA)
    6. huxtable::huxreg(lm1, lm2, coefs = "a")
    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: huxreg merges coefficients with same names (@test-huxreg.R#90)  ───
  subscript out of bounds
  Backtrace:
   1. huxtable::huxreg(lm1, lm2, coefs = c(name = "a", name = "b"))
   2. huxtable::add_footnote(result, note, border = 0)
   4. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   5. huxtable:::check_span_shadows(ht, "col", value)
   6. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 7. Error: huxreg bold_signif works (@test-huxreg.R#101)  ────────────────────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_silent(hr1 <- huxreg(lm1, bold_signif = 0.05))
    9. huxtable::huxreg(lm1, bold_signif = 0.05)
   10. huxtable::add_footnote(result, note, border = 0)
   12. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   13. huxtable:::check_span_shadows(ht, "col", value)
   14. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 8. Error: huxreg error_pos works (@test-huxreg.R#109)  ──────────────────────
  Overlapping multirow/multicolumn cells in [1, 3] of huxtableOverlapping multirow/multicolumn cells in [1, 4] of huxtableOverlapping multirow/multicolumn cells in [1, 5] of huxtable
  Backtrace:
    1. testthat::expect_silent(hr1 <- huxreg(lm1, lm2, error_pos = "right"))
    9. huxtable::huxreg(lm1, lm2, error_pos = "right")
   10. huxtable::set_colspan(result, 1, evens, 2)
   12. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   13. huxtable:::check_span_shadows(ht, "col", value)
   14. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 9. Error: huxreg number_format works correctly (@test-huxreg.R#120)  ────────
  subscript out of bounds
  Backtrace:
   1. huxtable::huxreg(lm1, lm2, number_format = 4)
   2. huxtable::add_footnote(result, note, border = 0)
   4. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   5. huxtable:::check_span_shadows(ht, "col", value)
   6. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 10. Error: huxreg borders argument works (@test-huxreg.R#137)  ──────────────
  subscript out of bounds
  Backtrace:
   1. huxtable::huxreg(lm1, lm2, borders = 0.7, outer_borders = 0.8)
   2. huxtable::add_footnote(result, note, border = 0)
   4. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   5. huxtable:::check_span_shadows(ht, "col", value)
   6. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 11. Error: huxreg statistics names shown in output (@test-huxreg.R#148)  ────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_match(...)
    5. huxtable::huxreg(m, statistics = c(foo = "nobs"))
    6. huxtable::add_footnote(result, note, border = 0)
    8. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
    9. huxtable:::check_span_shadows(ht, "col", value)
   10. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 12. Error: huxreg stars printed correctly (@test-huxreg.R#160)  ─────────────
  subscript out of bounds
  Backtrace:
   1. testthat::expect_match(huxreg(lm1)[[4, 2]], number_regex)
   4. huxtable::huxreg(lm1)
   5. huxtable::add_footnote(result, note, border = 0)
   7. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   8. huxtable:::check_span_shadows(ht, "col", value)
   9. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 13. Error: huxreg works for models without tidy p values (@test-huxreg.R#171)
  subscript out of bounds
  Backtrace:
    1. testthat::expect_warning(...)
    6. huxtable::huxreg(...)
    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: huxreg works when nobs not available (@test-huxreg.R#181)  ───────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_warning(huxreg(ct, statistics = NULL), "No glance method")
    6. huxtable::huxreg(ct, statistics = NULL)
    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: huxreg column names are legitimate (@test-huxreg.R#186)  ─────────
  subscript out of bounds
  Backtrace:
   1. huxtable::huxreg(...)
   2. huxtable::add_footnote(result, note, border = 0)
   4. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   5. huxtable:::check_span_shadows(ht, "col", value)
   6. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 16. Error: can pass generics::tidy arguments to huxreg (@test-huxreg.R#196)  
  subscript out of bounds
  Backtrace:
    1. testthat::expect_silent(...)
    9. huxtable::huxreg(...)
   10. huxtable::add_footnote(result, note, border = 0)
   12. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   13. huxtable:::check_span_shadows(ht, "col", value)
   14. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 17. Error: add_footnote works (@test-manipulation-helpers.R#22)  ────────────
  subscript out of bounds
  Backtrace:
   1. huxtable::add_footnote(ht_orig, "Some footnote text", italic = TRUE)
   3. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   4. huxtable:::check_span_shadows(ht, "col", value)
   5. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 18. Error: insert_column and insert_row work (@test-manipulation-helpers.R#31
  subscript out of bounds
  Backtrace:
   1. huxtable::insert_row(ht_orig, 8, 9)
   3. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   4. huxtable:::check_span_shadows(ht, "col", value)
   5. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 19. Error: insert_column works with column names (@test-manipulation-helpers.
  subscript out of bounds
  Backtrace:
   1. huxtable::insert_column(ht_orig, 8, 9, after = "a")
   3. huxtable:::`rowspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   4. huxtable:::check_span_shadows(ht, "row", value)
   5. huxtable:::display_cells(ht, new_rowspan = value)
  
  ── 20. Error: hux_logo works (@test-print.R#113)  ──────────────────────────────
  Overlapping multirow/multicolumn cells in [1, 3] of huxtableOverlapping multirow/multicolumn cells in [1, 4] of huxtable
  Backtrace:
    1. testthat::expect_silent(hux_logo())
    9. huxtable::hux_logo()
   11. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   12. huxtable:::check_span_shadows(ht, "col", value)
   13. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 21. Error: merge_cells (@test-set-interface.R#246)  ─────────────────────────
  subscript out of bounds
  Backtrace:
    1. testthat::expect_silent(ht2 <- merge_cells(ht, 1, 1:2))
    9. huxtable::merge_cells(ht, 1, 1:2)
   11. huxtable:::`colspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   12. huxtable:::check_span_shadows(ht, "col", value)
   13. huxtable:::display_cells(ht, new_colspan = value)
  
  ── 22. Error: merge_repeated_rows (@test-set-interface.R#267)  ─────────────────
  subscript out of bounds
  Backtrace:
   1. huxtable::merge_repeated_rows(ht)
   3. huxtable:::`rowspan<-.huxtable`(`*tmp*`, value = `*vtmp*`)
   4. huxtable:::check_span_shadows(ht, "row", value)
   5. huxtable:::display_cells(ht, new_rowspan = value)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 721 | SKIPPED: 64 | WARNINGS: 0 | FAILED: 22 ]
  1. Failure: huxreg copes with different models (@test-huxreg.R#31) 
  2. Error: huxreg confidence intervals work (@test-huxreg.R#46) 
  3. Failure: huxreg confidence intervals work when tidy c.i.s not available (@test-huxreg.R#58) 
  4. Error: huxreg error_style usage (@test-huxreg.R#69) 
  5. Failure: huxreg works with single coefficient (@test-huxreg.R#81) 
  6. Error: huxreg merges coefficients with same names (@test-huxreg.R#90) 
  7. Error: huxreg bold_signif works (@test-huxreg.R#101) 
  8. Error: huxreg error_pos works (@test-huxreg.R#109) 
  9. Error: huxreg number_format works correctly (@test-huxreg.R#120) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted