Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("dbhydroR")
  Loading required package: dbhydroR
  [ FAIL 8 | WARN 3 | SKIP 0 | PASS 4 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-getdbkey.R:5:5'): get_dbkey fails well ───────────────────────
  `get_dbkey(stationid = "S152%", category = "GW")` threw an error with unexpected message.
  Expected match: "No dbkeys found"
  Actual message: "empty or no content specified"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-getdbkey.R:5:5
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─dbhydroR::get_dbkey(stationid = "S152%", category = "GW")
    7.   ├─XML::readHTMLTable(res)
    8.   └─XML::readHTMLTable(res)
    9.     └─XML (local) .local(...)
   10.       └─XML::htmlParse(doc, encoding = encoding)
  ── Error ('test-getdbkey.R:13:5'): get_dbkey works ─────────────────────────────
  Error in `htmlParse(doc, encoding = encoding)`: empty or no content specified
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-getdbkey.R:12:3
   2. │ └─cassette$call_block(...)
   3. └─dbhydroR::get_dbkey(...) at test-getdbkey.R:13:5
   4.   ├─XML::readHTMLTable(res)
   5.   └─XML::readHTMLTable(res)
   6.     └─XML (local) .local(...)
   7.       └─XML::htmlParse(doc, encoding = encoding)
  ── Error ('test-gethydro.R:5:5'): get_hydro works ──────────────────────────────
  Error in `get_hydro(dbkey = "15081", date_min = "2013-01-01", date_max = "2013-02-02")`: No data found
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-gethydro.R:4:3
   2. │ └─cassette$call_block(...)
   3. └─dbhydroR::get_hydro(...) at test-gethydro.R:5:5
  ── Error ('test-gethydro.R:36:5'): get_hydro retrieves dbkeys on-the-fly ───────
  Error in `htmlParse(doc, encoding = encoding)`: empty or no content specified
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-gethydro.R:35:3
   2. │ └─cassette$call_block(...)
   3. └─dbhydroR::get_hydro(...) at test-gethydro.R:36:5
   4.   └─dbhydroR::get_dbkey(detail.level = "dbkey", ...)
   5.     ├─XML::readHTMLTable(res)
   6.     └─XML::readHTMLTable(res)
   7.       └─XML (local) .local(...)
   8.         └─XML::htmlParse(doc, encoding = encoding)
  ── Error ('test-getwq.R:5:3'): get_wq works ────────────────────────────────────
  Error in `read.table(file = file, header = header, sep = sep, quote = quote, 
      dec = dec, fill = fill, comment.char = comment.char, ...)`: no lines available in input
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-getwq.R:4:3
   2. │ └─cassette$call_block(...)
   3. └─dbhydroR::get_wq(...) at test-getwq.R:5:3
   4.   ├─base::suppressMessages(...)
   5.   │ └─base::withCallingHandlers(...)
   6.   └─utils::read.csv(...)
   7.     └─utils::read.table(...)
  ── Error ('test-getwq.R:14:3'): get_wq fails well ──────────────────────────────
  Error in `read.table(file = file, header = header, sep = sep, quote = quote, 
      dec = dec, fill = fill, comment.char = comment.char, ...)`: no lines available in input
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-getwq.R:14:3
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─dbhydroR::get_wq(...)
    7.   ├─base::suppressMessages(...)
    8.   │ └─base::withCallingHandlers(...)
    9.   └─utils::read.csv(...)
   10.     └─utils::read.table(...)
  ── Error ('test-getwq.R:48:5'): mdl handling occurs when get_wq raw is TRUE ────
  Error in `read.table(file = file, header = header, sep = sep, quote = quote, 
      dec = dec, fill = fill, comment.char = comment.char, ...)`: no lines available in input
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-getwq.R:47:3
   2. │ └─cassette$call_block(...)
   3. └─dbhydroR::get_wq(...) at test-getwq.R:48:5
   4.   ├─base::suppressMessages(...)
   5.   │ └─base::withCallingHandlers(...)
   6.   └─utils::read.csv(...)
   7.     └─utils::read.table(...)
  ── Error ('test-getwq.R:58:5'): multiple stations return correct num of columns ──
  Error in `read.table(file = file, header = header, sep = sep, quote = quote, 
      dec = dec, fill = fill, comment.char = comment.char, ...)`: no lines available in input
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-getwq.R:57:3
   2. │ └─cassette$call_block(...)
   3. ├─base::ncol(...) at test-getwq.R:58:5
   4. └─dbhydroR::get_wq(...)
   5.   ├─base::suppressMessages(...)
   6.   │ └─base::withCallingHandlers(...)
   7.   └─utils::read.csv(...)
   8.     └─utils::read.table(...)
  
  [ FAIL 8 | WARN 3 | SKIP 0 | PASS 4 ]
  Error: Test failures
  Execution halted