Running ‘testthat.R’ [46s/296s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(iNZightPlots)
  > 
  > test_check("iNZightPlots")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (4)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_repweights.R:5:1): (code run outside of `test_that()`) ──────────
  Error: download from 'https://inzight.nz/testdata/chis2.csv' failed
  Backtrace:
      █
   1. └─iNZightTools::smart_read("https://inzight.nz/testdata/chis2.csv") test_repweights.R:5:0
   2.   └─iNZightTools:::url_to_temp(file)
   3.     └─utils::download.file(url, file, quiet = TRUE)
  ── Error (test_summary.R:42:1): (code run outside of `test_that()`) ────────────
  Error: download from 'https://inzight.nz/testdata/chis2.csv' failed
  Backtrace:
      █
   1. └─iNZightTools::smart_read("https://inzight.nz/testdata/chis2.csv") test_summary.R:42:0
   2.   └─iNZightTools:::url_to_temp(file)
   3.     └─utils::download.file(url, file, quiet = TRUE)
  ── Error (test_survey.R:201:5): Scatter plots work for surveys ─────────────────
  Error: download from 'https://inzight.nz/testdata/nhanes.csv' failed
  Backtrace:
      █
   1. ├─base::suppressWarnings(...) test_survey.R:201:4
   2. │ └─base::withCallingHandlers(...)
   3. ├─`%>%`(...)
   4. ├─dplyr::mutate(...)
   5. └─iNZightTools::smart_read("https://inzight.nz/testdata/nhanes.csv")
   6.   └─iNZightTools:::url_to_temp(file)
   7.     └─utils::download.file(url, file, quiet = TRUE)
  ── Error (test_survey_inference.R:591:1): (code run outside of `test_that()`) ──
  Error: download from 'https://inzight.nz/testdata/chis2.csv' failed
  Backtrace:
      █
   1. └─iNZightTools::smart_read("https://inzight.nz/testdata/chis2.csv") test_survey_inference.R:591:0
   2.   └─iNZightTools:::url_to_temp(file)
   3.     └─utils::download.file(url, file, quiet = TRUE)
  
  [ FAIL 4 | WARN 6 | SKIP 4 | PASS 265 ]
  Error: Test failures
  Execution halted