Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("htmltab")
  Loading required package: htmltab
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test_expand_spans.R:90:3): Correctly expanded ──────────────────────
  Header dimension doesn't match body dimension
  Backtrace:
   1. base::suppressMessages(tab3 <- htmltab(tab3, header = 1:2, body = 3)) test_expand_spans.R:90:2
   3. htmltab::htmltab(tab3, header = 1:2, body = 3)
   4. htmltab:::make_colnames(...)
  ── Warning (test_expand_spans.R:90:3): Correctly expanded ──────────────────────
  Columns [NA,NA] seem to have no data and are removed. Use rm_nodata_cols = F to suppress this behavior
  Backtrace:
   1. base::suppressMessages(tab3 <- htmltab(tab3, header = 1:2, body = 3)) test_expand_spans.R:90:2
   3. htmltab::htmltab(tab3, header = 1:2, body = 3)
   4. htmltab:::rm_empty_cols(df = tab, header = header.names)
  ── Warning (test_expand_spans.R:95:3): Correctly expanded ──────────────────────
  `is_true()` is deprecated. Please use `expect_true()` instead.
  Backtrace:
   1. testthat::expect_that(is.na(tab3[, 4]), is_true()) test_expand_spans.R:95:2
   2. testthat:::condition(object)
  ── Warning (test_find_header.R:65:5): Correctly identified header 2 ────────────
  `is_true()` is deprecated. Please use `expect_true()` instead.
  Backtrace:
   1. testthat::expect_that(is.na(tab2[, 4]), is_true()) test_find_header.R:65:4
   2. testthat:::condition(object)
  ── Warning (test_find_header.R:98:3): Correctly identified header 3 ────────────
  Header dimension doesn't match body dimension
  Backtrace:
   1. base::suppressMessages(tab3 <- htmltab(tab3, fillNA = "")) test_find_header.R:98:2
   3. htmltab::htmltab(tab3, fillNA = "")
   4. htmltab:::make_colnames(...)
  ── Warning (test_find_header.R:98:3): Correctly identified header 3 ────────────
  Columns [NA,NA] seem to have no data and are removed. Use rm_nodata_cols = F to suppress this behavior
  Backtrace:
   1. base::suppressMessages(tab3 <- htmltab(tab3, fillNA = "")) test_find_header.R:98:2
   3. htmltab::htmltab(tab3, fillNA = "")
   4. htmltab:::rm_empty_cols(df = tab, header = header.names)
  ── Warning (test_multi-dim-header.R:68:1): multi-dim 1 ─────────────────────────
  Header dimension doesn't match body dimension
  Backtrace:
   1. base::suppressMessages(...) test_multi-dim-header.R:68:0
   3. htmltab::htmltab(...)
   4. htmltab:::make_colnames(...)
  ── Warning (test_multi-dim-header.R:68:1): multi-dim 1 ─────────────────────────
  Columns [NA,NA] seem to have no data and are removed. Use rm_nodata_cols = F to suppress this behavior
  Backtrace:
   1. base::suppressMessages(...) test_multi-dim-header.R:68:0
   3. htmltab::htmltab(...)
   4. htmltab:::rm_empty_cols(df = tab, header = header.names)
  ── Warning (test_multi-dim-header.R:69:1): multi-dim 1 ─────────────────────────
  Header dimension doesn't match body dimension
  Backtrace:
   1. base::suppressMessages(...) test_multi-dim-header.R:69:0
   3. htmltab::htmltab(...)
   4. htmltab:::make_colnames(...)
  ── Warning (test_multi-dim-header.R:69:1): multi-dim 1 ─────────────────────────
  Columns [NA,NA] seem to have no data and are removed. Use rm_nodata_cols = F to suppress this behavior
  Backtrace:
   1. base::suppressMessages(...) test_multi-dim-header.R:69:0
   3. htmltab::htmltab(...)
   4. htmltab:::rm_empty_cols(df = tab, header = header.names)
  ── Warning (test_multi-dim-header.R:71:3): multi-dim 1 ─────────────────────────
  `is_true()` is deprecated. Please use `expect_true()` instead.
  Backtrace:
   1. testthat::expect_that(is.na(tab3m1[1, 1]), is_true()) test_multi-dim-header.R:71:2
   2. testthat:::condition(object)
  ── Warning (test_multi-dim-header.R:77:3): multi-dim 1 ─────────────────────────
  `is_true()` is deprecated. Please use `expect_true()` instead.
  Backtrace:
   1. testthat::expect_that(is.na(tab3m2[1, 1]), is_true()) test_multi-dim-header.R:77:2
   2. testthat:::condition(object)
  ── Warning (test_multi-dim-header.R:197:1): multi-dim 2 ────────────────────────
  Header dimension doesn't match body dimension
  Backtrace:
   1. base::suppressMessages(...) test_multi-dim-header.R:197:0
   3. htmltab::htmltab(...)
   4. htmltab:::make_colnames(...)
  ── Warning (test_multi-dim-header.R:197:1): multi-dim 2 ────────────────────────
  Columns [NA,NA] seem to have no data and are removed. Use rm_nodata_cols = F to suppress this behavior
  Backtrace:
   1. base::suppressMessages(...) test_multi-dim-header.R:197:0
   3. htmltab::htmltab(...)
   4. htmltab:::rm_empty_cols(df = tab, header = header.names)
  ── Warning (test_multi-dim-header.R:201:1): multi-dim 2 ────────────────────────
  `is_true()` is deprecated. Please use `expect_true()` instead.
  Backtrace:
   1. testthat::expect_that(is.na(tab4m1[1, 1]), is_true()) test_multi-dim-header.R:201:0
   2. testthat:::condition(object)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_inputs.R:9:3): check_type produces class output ─────────────────
  Error: Could not resolve host: christianrubba.com
  Backtrace:
      █
   1. ├─htmltab:::check_type(...) test_inputs.R:9:2
   2. └─htmltab:::check_type.character(...)
   3.   └─httr::GET(doc)
   4.     └─httr:::request_perform(req, hu$handle$handle)
   5.       ├─httr:::request_fetch(req$output, req$url, handle)
   6.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   7.         └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 1 | WARN 15 | SKIP 0 | PASS 118 ]
  Error: Test failures
  Execution halted