- using R Under development (unstable) (2025-07-21 r88432)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 20.1.8
flang version 20.1.8
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘dbhydroR’ can be installed ... [7s/14s] OK
See the install log for details.
- 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... 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 ... [11s/18s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... ERROR
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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... OK
- checking PDF version of manual ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR