* using log directory 'd:/Rcompile/CRANpkg/local/4.6/dbhydroR.Rcheck' * using R Under development (unstable) (2025-07-21 r88439 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'dbhydroR/DESCRIPTION' ... OK * this is package 'dbhydroR' version '0.2-8' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'dbhydroR' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [4s] OK * checking Rd files ... [0s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking LazyData ... INFO 'LazyData' is specified without a 'data' directory * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [2s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [3s] ERROR Running 'testthat.R' [3s] 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [3s] OK * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 1 ERROR