Running ‘testthat.R’ [0m/20m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bomWater)
  > 
  > test_check("bomWater")
  ── 1. Error: I can make requests to BoM (@test-bomWater.R#14)  ─────────────────
  is.response(x) is not TRUE
  Backtrace:
   1. bomWater:::make_bom_request(params)
   3. httr::content(r, "text")
   4. base::stopifnot(is.response(x))
  
  ── 2. Error: I can get a station list (@test-bomWater.R#22)  ───────────────────
  is.response(x) is not TRUE
  Backtrace:
   1. bomWater::get_station_list("Rainfall", "570946")
   2. bomWater:::make_bom_request(params)
   4. httr::content(r, "text")
   5. base::stopifnot(is.response(x))
  
  ── 3. Error: I can get a timeseries ID (@test-bomWater.R#36)  ──────────────────
  is.response(x) is not TRUE
  Backtrace:
   1. bomWater:::get_timeseries_id(...)
   2. bomWater:::make_bom_request(params)
   4. httr::content(r, "text")
   5. base::stopifnot(is.response(x))
  
  ── 4. Error: I can get timeseries values (@test-bomWater.R#48)  ────────────────
  is.response(x) is not TRUE
  Backtrace:
   1. bomWater:::get_timeseries_values(...)
   2. bomWater:::make_bom_request(params)
   4. httr::content(r, "text")
   5. base::stopifnot(is.response(x))
  
  ── 5. Error: get timeseries puts it all together (@test-bomWater.R#72)  ────────
  is.response(x) is not TRUE
  Backtrace:
   1. bomWater::get_timeseries(...)
   2. bomWater::get_station_list(parameter_type, station_number)
   3. bomWater:::make_bom_request(params)
   5. httr::content(r, "text")
   6. base::stopifnot(is.response(x))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 1 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 5 ]
  1. Error: I can make requests to BoM (@test-bomWater.R#14) 
  2. Error: I can get a station list (@test-bomWater.R#22) 
  3. Error: I can get a timeseries ID (@test-bomWater.R#36) 
  4. Error: I can get timeseries values (@test-bomWater.R#48) 
  5. Error: get timeseries puts it all together (@test-bomWater.R#72) 
  
  Error: testthat unit tests failed
  Execution halted