Running ‘test-all.R’ [3s/14s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > library(clifro)
  > 
  > test_check("clifro")
  ── 1. Error: cf_find_station (@test-cf_find_station.R#4)  ──────────────────────
  Not Found
  1: cf_find_station("island") at testthat/test-cf_find_station.R:4
  2: postForm("https://cliflo.niwa.co.nz/pls/niwp/wstn.get_stn_nodt", .params = param.list, 
         .opts = list(cainfo = cert))
  3: stop.if.HTTP.error(http.header)
  
  ── 2. Error: cf_last_query (@test-cf_last_query.R#4)  ──────────────────────────
  second selection (select_2) is out of range for NULL
  1: cf_query(cf_user("public"), cf_datatype(5, 2, 1), cf_station(), "2012-01-01 00", 
         "2012-01-02 00") at testthat/test-cf_last_query.R:4
  2: is(datatype, "cfDatatype")
  3: cf_datatype(5, 2, 1)
  4: second_stage_selection(href_1[1], select_2[i], dt_name[i], graphics)
  5: stop(paste("second selection (select_2) is out of range for", dt_name), call. = FALSE)
  
  ── 3. Error: cf_query (@test-cf_query.R#4)  ────────────────────────────────────
  second selection (select_2) is out of range for NULL
  1: cf_query(cf_user("public"), cf_datatype(5, 2, 1), cf_station(), "2012-01-01 00", 
         "2012-01-02 00") at testthat/test-cf_query.R:4
  2: is(datatype, "cfDatatype")
  3: cf_datatype(5, 2, 1)
  4: second_stage_selection(href_1[1], select_2[i], dt_name[i], graphics)
  5: stop(paste("second selection (select_2) is out of range for", dt_name), call. = FALSE)
  
  ── 4. Error: cf_station (@test-cf_station.R#4)  ────────────────────────────────
  the agent numbers do not represent any CliFlo stations
  1: cf_station() at testthat/test-cf_station.R:4
  2: stop("the agent numbers do not represent any CliFlo stations")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 15 SKIPPED: 0 FAILED: 4
  1. Error: cf_find_station (@test-cf_find_station.R#4) 
  2. Error: cf_last_query (@test-cf_last_query.R#4) 
  3. Error: cf_query (@test-cf_query.R#4) 
  4. Error: cf_station (@test-cf_station.R#4) 
  
  Error: testthat unit tests failed
  Execution halted