- using R version 4.6.1 (2026-06-24 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
* current time: 2026-09-09 08:08:22 UTC
- checking for file 'hydroloom/DESCRIPTION' ... OK
- this is package 'hydroloom' version '1.2.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 hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'hydroloom' can be installed ... 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 ... [2s] OK
- checking whether the package can be loaded with stated dependencies ... [2s] OK
- checking whether the package can be unloaded cleanly ... [2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s] OK
- checking loading without being on the library search path ... [2s] OK
- checking whether startup messages can be suppressed ... [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 ... [11s] OK
- checking Rd files ... [1s] 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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [18s] ERROR
Running examples in 'hydroloom-Ex.R' failed
The error most likely occurred in:
> ### 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 "D:\temp\2026_09_09_01_50_00_18435\Rtmp8gouEB\nhdplusTools\petapsco_flowlines.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [72s] ERROR
Running 'testthat.R' [72s]
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.5 seconds...
Request failed [404]. Retrying in 1.9 seconds...
Saving _problems/test_add_measures-35.R
Request failed [404]. Retrying in 1.7 seconds...
Request failed [404]. Retrying in 2.4 seconds...
Saving _problems/test_add_pfafstetter-7.R
Request failed [404]. Retrying in 1.8 seconds...
Request failed [404]. Retrying in 1 seconds...
Saving _problems/test_get_hydro_location-4.R
Request failed [404]. Retrying in 1.3 seconds...
Request failed [404]. Retrying in 3.9 seconds...
Saving _problems/test_index-6.R
Request failed [404]. Retrying in 1.8 seconds...
Request failed [404]. Retrying in 1.7 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 "D:\temp\2026_09_09_01_50_00_18435\Rtmp8ktAXy\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 `D:\temp\2026_09_09_01_50_00_18435\Rtmp8ktAXy\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 "D:\temp\2026_09_09_01_50_00_18435\Rtmp8ktAXy\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 "D:\temp\2026_09_09_01_50_00_18435\Rtmp8ktAXy\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 "D:\temp\2026_09_09_01_50_00_18435\Rtmp8ktAXy\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 ... [4s] OK
- checking PDF version of manual ... [21s] OK
- checking HTML version of manual ... [12s] OK
- DONE
Status: 2 ERRORs