- using R version 4.5.2 beta (2025-10-20 r88955)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.3.0-8) 14.3.0
GNU Fortran (Debian 14.3.0-8) 14.3.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘tidyhydat/DESCRIPTION’ ... OK
- this is package ‘tidyhydat’ version ‘0.7.1’
- 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 ‘tidyhydat’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [0s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] OK
- checking whether startup messages can be suppressed ... [0s/0s] 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 ... [9s/10s] OK
- checking Rd files ... [1s/1s] 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/1s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [43s/63s] ERROR
Running ‘testthat.R’ [42s/63s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(tidyhydat)
> library(dplyr)
Attaching package: 'dplyr'
The following object is masked from 'package:testthat':
matches
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
> library(lubridate)
Attaching package: 'lubridate'
The following objects are masked from 'package:base':
date, intersect, setdiff, union
>
> test_check("tidyhydat")
[ FAIL 2 | WARN 0 | SKIP 25 | PASS 198 ]
══ Skipped tests (25) ══════════════════════════════════════════════════════════
• On CRAN (25): 'test-hy-plot.R:2:3', 'test-hy-remote.R:2:3',
'test-realtime-webservice.R:2:3', 'test-realtime-webservice.R:35:3',
'test-realtime-webservice.R:50:3', 'test-realtime-webservice.R:68:3',
'test_daily_mean.R:2:3', 'test_download_realtime.R:2:3',
'test_download_realtime.R:22:3', 'test_download_realtime.R:41:3',
'test_download_realtime.R:49:3', 'test_download_realtime.R:54:3',
'test_hy_daily.R:3:3', 'test_hy_daily.R:10:3', 'test_hy_daily.R:20:3',
'test_realtime_add_local_datetime.R:2:3',
'test_realtime_add_local_datetime.R:13:3',
'test_realtime_add_local_datetime.R:24:3', 'test_realtime_network.R:3:3',
'test_realtime_plot.R:3:3', 'test_realtime_plot.R:9:3',
'test_realtime_plot.R:15:3', 'test_realtime_plot.R:21:3',
'test_realtime_plot.R:27:3', 'test_utils.R:27:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_search.R:3:3'): search_stn_number returns a dataframe ──────────
Error in `if (length(res) == 0 || res == -1) {
return(list(path = path, extension = ""))
}`: missing value where TRUE/FALSE needed
Backtrace:
▆
1. ├─testthat::expect_s3_class(...) at test_search.R:3:3
2. │ └─testthat::quasi_label(enquo(object), arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─tidyhydat::search_stn_number("08HF", hydat_path = hy_test_db())
5. │ ├─dplyr::select(...)
6. │ ├─dplyr::distinct(...)
7. │ ├─dplyr::bind_rows(realtime_stations(), suppressMessages(hy_stations(hydat_path = hydat_con)))
8. │ │ └─rlang::list2(...)
9. │ └─tidyhydat::realtime_stations()
10. │ └─readr::read_csv(...)
11. │ └─vroom::vroom(...)
12. │ └─vroom:::vroom_(...)
13. └─vroom (local) `<fn>`(NA_character_)
14. └─vroom:::split_path_ext(basename_utf8(path))
── Error ('test_search.R:12:3'): search_stn_name returns a dataframe ───────────
Error in `if (length(res) == 0 || res == -1) {
return(list(path = path, extension = ""))
}`: missing value where TRUE/FALSE needed
Backtrace:
▆
1. ├─testthat::expect_s3_class(...) at test_search.R:12:3
2. │ └─testthat::quasi_label(enquo(object), arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─tidyhydat::search_stn_name("Saskatchewan", hydat_path = hy_test_db())
5. │ ├─dplyr::select(...)
6. │ ├─dplyr::distinct(...)
7. │ ├─dplyr::bind_rows(realtime_stations(), suppressMessages(hy_stations(hydat_path = hydat_con)))
8. │ │ └─rlang::list2(...)
9. │ └─tidyhydat::realtime_stations()
10. │ └─readr::read_csv(...)
11. │ └─vroom::vroom(...)
12. │ └─vroom:::vroom_(...)
13. └─vroom (local) `<fn>`(NA_character_)
14. └─vroom:::split_path_ext(basename_utf8(path))
[ FAIL 2 | WARN 0 | SKIP 25 | PASS 198 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [5s/6s] OK
- checking PDF version of manual ... [9s/11s] OK
- checking HTML version of manual ... [3s/5s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR