- using R Under development (unstable) (2026-09-08 r90509)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-16 (Debian 16.2.0-1) 16.2.0
GNU Fortran (Debian 16.2.0-1) 16.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-09-09 15:39:25 UTC
- checking for file ‘hydroloom/DESCRIPTION’ ... OK
- this is package ‘hydroloom’ version ‘1.2.1’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [2s/2s] OK
- 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 ‘hydroloom’ 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 ... [2s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the package can be unloaded cleanly ... [1s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/3s] OK
- checking loading without being on the library search path ... [2s/2s] OK
- checking whether startup messages can be suppressed ... [2s/2s] 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 ... [15s/20s] OK
- checking Rd files ... [0s/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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [13s/18s] ERROR
Running examples in ‘hydroloom-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: disambiguate_indexes
> ### Title: Disambiguate Flowline Indexes
> ### Aliases: disambiguate_indexes
>
> ### ** Examples
>
> if (require(nhdplusTools)) {
+ source(system.file("extdata", "sample_flines.R", package = "nhdplusTools"))
+
+ hydro_location <- sf::st_sf(id = c(1, 2, 3),
+ geom = sf::st_sfc(list(sf::st_point(c(-76.86934, 39.49328)),
+ sf::st_point(c(-76.91711, 39.40884)),
+ sf::st_point(c(-76.88081, 39.36354))),
+ crs = 4326),
+ totda = c(23.6, 7.3, 427.9),
+ nameid = c("Patapsco", "", "Falls Run River"))
+
+ indexes <- index_points_to_lines(sample_flines,
+ hydro_location,
+ search_radius = units::set_units(0.2, "degrees"),
+ max_matches = 10)
+
+ disambiguate_indexes(indexes,
+ dplyr::select(sample_flines, COMID, TotDASqKM),
+ dplyr::select(hydro_location, id, totda))
+
+ result <- disambiguate_indexes(indexes,
+ dplyr::select(sample_flines, COMID, GNIS_NAME),
+ dplyr::select(hydro_location, id, nameid))
+
+ result[result$point_id == 1, ]
+
+ result[result$point_id == 2, ]
+
+ result[result$point_id == 3, ]
+ }
Loading required package: nhdplusTools
nhdplusTools has been superseded by hydrogeofetch and will be archived from CRAN in October 2027. Please migrate to:
Blodgett, D. 2026, hydrogeofetch: Hydrologic Geospatial Fabric Extraction Tool Chain, https://doi.org/10.5066/P13UWPUR
Attaching package: ‘nhdplusTools’
The following object is masked from ‘package:hydroloom’:
make_node_topology
Request failed [404]. Retrying in 1 seconds...
Request failed [404]. Retrying in 1.5 seconds...
Error: Cannot open "/home/hornik/tmp/scratch/RtmpXm7f5W/nhdplusTools/petapsco_flowlines.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
add_measures 6.866 0.107 7.548
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [45s/77s] ERROR
Running ‘testthat.R’ [44s/77s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(hydroloom)
>
> test_check("hydroloom")
|
| | 0%
|
|==================== | 29%
|
|========================================================== | 82%
|
|===================================================================== | 98%
|
|======================================================================| 100%
|
| | 0%
|
|== | 3%
|
|===================== | 31%
|
|========================================================== | 82%
|
|===================================================================== | 98%
|
|======================================================================| 100%
|
| | 0%
|
|==================== | 29%
|
|========================================================== | 82%
|
|===================================================================== | 98%
|
|======================================================================| 100%
|
| | 0%
|
|================ | 23%
|
|=========================================== | 61%
|
|================================================================= | 94%
|
|======================================================================| 100%
|
| | 0%
|
|==================== | 29%
|
|========================================================== | 82%
|
|===================================================================== | 98%
|
|======================================================================| 100%
Request failed [404]. Retrying in 1.6 seconds...
Request failed [404]. Retrying in 4 seconds...
Saving _problems/test_add_measures-35.R
Request failed [404]. Retrying in 2 seconds...
Request failed [404]. Retrying in 1.3 seconds...
Saving _problems/test_add_pfafstetter-7.R
Request failed [404]. Retrying in 1.1 seconds...
Request failed [404]. Retrying in 1 seconds...
Saving _problems/test_get_hydro_location-4.R
Request failed [404]. Retrying in 1 seconds...
Request failed [404]. Retrying in 1.5 seconds...
Saving _problems/test_index-6.R
Request failed [404]. Retrying in 1 seconds...
Request failed [404]. Retrying in 3 seconds...
Saving _problems/test_index-57.R
converting hy_node to hy_topo via add_toids(). For large networks, call add_toids() explicitly to avoid repeated conversion.
[ FAIL 5 | WARN 16 | SKIP 1 | PASS 657 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• On CRAN (1): 'test_add_levelpaths.R:163:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_add_measures.R:35:3'): mainstem ────────────────────────────────
<Rcpp::exception/C++Error/error/condition>
Error: Cannot open "/home/hornik/tmp/scratch/RtmpbdXK2p/nhdplusTools/3dhp_yahara_flowlines.geojson"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
Backtrace:
▆
1. └─sf::read_sf(sample_3dhp_data) at test_add_measures.R:35:3
2. ├─sf::st_read(...)
3. └─sf:::st_read.character(...)
4. └─sf:::CPL_read_ogr(...)
── Error ('test_add_pfafstetter.R:7:3'): get_pfaf ──────────────────────────────
Error in `zip::unzip(d, exdir = work_dir)`: Cannot open zip file `/home/hornik/tmp/scratch/RtmpbdXK2p/nhdplusTools/03_sub.zip`
Backtrace:
▆
1. ├─base::source(system.file("extdata/nhdplushr_data.R", package = "nhdplusTools")) at test_add_pfafstetter.R:7:3
2. │ ├─base::withVisible(eval(ei, envir))
3. │ └─base::eval(ei, envir)
4. │ └─base::eval(ei, envir)
5. ├─global download_pkg_data(...)
6. │ └─zip::unzip(d, exdir = work_dir)
7. │ └─zip:::call_with_cleanup(...)
8. │ └─base::withCallingHandlers(...)
9. └─base::.handleSimpleError(...)
10. └─zip (local) h(simpleError(msg, call))
── Error ('test_get_hydro_location.R:4:3'): get location ───────────────────────
<Rcpp::exception/C++Error/error/condition>
Error: Cannot open "/home/hornik/tmp/scratch/RtmpbdXK2p/nhdplusTools/petapsco_flowlines.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
Backtrace:
▆
1. ├─base::source(system.file("extdata", "sample_flines.R", package = "nhdplusTools")) at test_get_hydro_location.R:4:3
2. │ ├─base::withVisible(eval(ei, envir))
3. │ └─base::eval(ei, envir)
4. │ └─base::eval(ei, envir)
5. └─sf::read_sf(file.path(data_dir, "petapsco_flowlines.gpkg"))
6. ├─sf::st_read(...)
7. └─sf:::st_read.character(...)
8. └─sf:::CPL_read_ogr(...)
── Error ('test_index.R:6:3'): index to waterbodies ────────────────────────────
<Rcpp::exception/C++Error/error/condition>
Error: Cannot open "/home/hornik/tmp/scratch/RtmpbdXK2p/nhdplusTools/sample_natseamless.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
Backtrace:
▆
1. └─sf::read_sf(sample_data, "NHDWaterbody") at test_index.R:6:3
2. ├─sf::st_read(...)
3. └─sf:::st_read.character(...)
4. └─sf:::CPL_read_ogr(...)
── Error ('test_index.R:57:3'): (code run outside of `test_that()`) ────────────
<Rcpp::exception/C++Error/error/condition>
Error: Cannot open "/home/hornik/tmp/scratch/RtmpbdXK2p/nhdplusTools/petapsco_flowlines.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
Backtrace:
▆
1. ├─base::source(system.file("extdata", "sample_flines.R", package = "nhdplusTools")) at test_index.R:57:3
2. │ ├─base::withVisible(eval(ei, envir))
3. │ └─base::eval(ei, envir)
4. │ └─base::eval(ei, envir)
5. └─sf::read_sf(file.path(data_dir, "petapsco_flowlines.gpkg"))
6. ├─sf::st_read(...)
7. └─sf:::st_read.character(...)
8. └─sf:::CPL_read_ogr(...)
[ FAIL 5 | WARN 16 | SKIP 1 | PASS 657 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [3s/4s] OK
- checking PDF version of manual ... [5s/7s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs