Running 'testthat.R' [56s]
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: cannot open URL 'https://inzight.nz/testdata/chis2.csv'
  Backtrace:
      x
   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: cannot open URL 'https://inzight.nz/testdata/chis2.csv'
  Backtrace:
      x
   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: cannot open URL 'https://inzight.nz/testdata/nhanes.csv'
  Backtrace:
      x
   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: cannot open URL 'https://inzight.nz/testdata/chis2.csv'
  Backtrace:
      x
   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)
  -- Error (test_survey_methods.R:41:1): (code run outside of `test_that()`) -----
  Error: cannot open URL 'https://inzight.nz/testdata/chis2.csv'
  Backtrace:
      x
   1. \-iNZightTools::smart_read("https://inzight.nz/testdata/chis2.csv") test_survey_methods.R:41:0
   2.   \-iNZightTools:::url_to_temp(file)
   3.     \-utils::download.file(url, file, quiet = TRUE)
  
  [ FAIL 5 | WARN 4 | SKIP 4 | PASS 261 ]
  Error: Test failures
  Execution halted