Running 'testthat.R' [141s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(readrba)
  > 
  > test_check("readrba")
  == Skipped tests ===============================================================
  * On CRAN (14)
  
  == Failed tests ================================================================
  -- Error (test-get_rba_urls.R:2:3): get_rba_urls() matches correct URLs --------
  Error: Could not read HTML at https://www.rba.gov.au/statistics/tables/
  Backtrace:
      x
   1. +-testthat::expect_length(get_rba_urls("A1"), 1) test-get_rba_urls.R:2:2
   2. | \-testthat::quasi_label(enquo(object), arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-readrba:::get_rba_urls("A1")
   5.   \-readrba:::scrape_table_list(cur_hist)
   6.     \-readrba:::scrape_indiv_table_list(cur_hist = cur_hist)
   7.       \-readrba:::safely_read_html(url = table_url)
  -- Error (test-get_rba_urls.R:12:3): get_rba_urls() returns multiple URLs where multiple tables have the same no. --
  Error: Could not read HTML at https://www.rba.gov.au/statistics/tables/
  Backtrace:
      x
   1. +-testthat::expect_length(get_rba_urls("A3", "current"), 1) test-get_rba_urls.R:12:2
   2. | \-testthat::quasi_label(enquo(object), arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-readrba:::get_rba_urls("A3", "current")
   5.   \-readrba:::scrape_table_list(cur_hist)
   6.     \-readrba:::scrape_indiv_table_list(cur_hist = cur_hist)
   7.       \-readrba:::safely_read_html(url = table_url)
  -- Failure (test-url_exists.R:23:3): url_exists() returns expected input -------
  url_exists(urls) not identical to c(TRUE, TRUE, FALSE).
  2 element mismatches
  
  [ FAIL 3 | WARN 0 | SKIP 14 | PASS 42 ]
  Error: Test failures
  In addition: Warning messages:
  1: In for (what in newMethods) { :
    closing unused connection 7 (https://www.rba.gov.au/statistics/tables/)
  2: In for (what in newMethods) { :
    closing unused connection 6 (https://www.rba.gov.au/statistics/tables/)
  3: In for (what in newMethods) { :
    closing unused connection 5 (https://www.rba.gov.au/statistics/tables/)
  4: In for (what in newMethods) { :
    closing unused connection 4 (https://www.rba.gov.au/statistics/tables/)
  Execution halted