Last updated on 2026-09-06 02:52:53 CEST.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 1.2.1 | 12.43 | 237.18 | 249.61 | OK | |
| r-devel-linux-x86_64-debian-gcc | 1.2.1 | 8.07 | 158.00 | 166.07 | OK | |
| r-devel-linux-x86_64-fedora-clang | 1.2.1 | 9.00 | 159.70 | 168.70 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 1.2.1 | 9.00 | 160.73 | 169.73 | OK | |
| r-devel-windows-x86_64 | 1.2.1 | 14.00 | 225.00 | 239.00 | OK | |
| r-patched-linux-x86_64 | 1.2.1 | 12.75 | 218.47 | 231.22 | OK | |
| r-release-linux-x86_64 | 1.2.1 | 9.06 | 172.18 | 181.24 | ERROR | |
| r-release-macos-arm64 | 1.2.1 | 3.00 | 61.00 | 64.00 | OK | |
| r-release-macos-x86_64 | 1.2.1 | 8.00 | 234.00 | 242.00 | OK | |
| r-release-windows-x86_64 | 1.2.1 | 14.00 | 222.00 | 236.00 | OK | |
| r-oldrel-macos-arm64 | 1.2.1 | 3.00 | 60.00 | 63.00 | OK | |
| r-oldrel-macos-x86_64 | 1.2.1 | 8.00 | 375.00 | 383.00 | OK | |
| r-oldrel-windows-x86_64 | 1.2.1 | 20.00 | 301.00 | 321.00 | OK |
Version: 1.2.1
Check: examples
Result: 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/RtmpFGumiL/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 10.069 0.104 10.913
Flavor: r-release-linux-x86_64
Version: 1.2.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [63s/92s]
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 seconds...
Request failed [404]. Retrying in 2.8 seconds...
Saving _problems/test_add_measures-35.R
Request failed [404]. Retrying in 1.4 seconds...
Request failed [404]. Retrying in 2.1 seconds...
Saving _problems/test_add_pfafstetter-7.R
Request failed [404]. Retrying in 1 seconds...
Request failed [404]. Retrying in 1.9 seconds...
Saving _problems/test_get_hydro_location-4.R
Request failed [404]. Retrying in 1.2 seconds...
Request failed [404]. Retrying in 1 seconds...
Saving _problems/test_index-6.R
Request failed [404]. Retrying in 1 seconds...
Request failed [404]. Retrying in 3.4 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/RtmpsynVlO/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/RtmpsynVlO/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/RtmpsynVlO/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/RtmpsynVlO/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/RtmpsynVlO/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
Flavor: r-release-linux-x86_64