Last updated on 2026-08-20 17:58:02 CEST.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-fedora-clang | 2.0.0 | 12.00 | 128.01 | 140.01 | ERROR |
Version: 2.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [41s/94s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library("testthat")
>
> test_check("hydrogeofetch")
Loading required package: hydrogeofetch
Starting 2 test processes.
> test_03_get_functions.R: defaulting to 2025 version of WBD
> test_get_3dhp.R: `type` input must be one of:
> test_get_3dhp.R: "hydrolocation - sink, spring, waterbody outlet"
> test_get_3dhp.R: "hydrolocation - headwater, terminus, divergence, confluence, catchment outlet"
> test_get_3dhp.R: "hydrolocation - reach code, external connection"
> test_get_3dhp.R: "flowline"
> test_get_3dhp.R: "waterbody"
> test_get_3dhp.R: "catchment"
> test_get_drainage_area_estimates.R: Finding immediately-upstream HUC12 outlets...
> test_get_drainage_area_estimates.R: Finding immediately-upstream HUC12 outlets...
> test_get_drainage_area_estimates.R: Finding immediately-upstream HUC12 outlets...
> test_get_drainage_area_estimates.R: Superset union: adding 1 HUC12s from base estimate
> test_get_drainage_area_estimates.R: Splitting catchments at 1 HUC12 outlet(s)...
> test_get_drainage_area_estimates.R: Navigating network upstream of HUC12 outlets...
> test_get_drainage_area_estimates.R: 2 extra catchments between outlet and HUC12 outlets
> test_get_drainage_area_estimates.R: HUC10 from HUC08: 1 HUC12s reused, 1 fetched separately
> test_get_drainage_area_estimates.R: Superset union: adding 1 HUC12s from base estimate
> test_03_get_functions.R: defaulting to 2025 version of WBD
> test_get_drainage_area_estimates.R: Superset union: adding 1 HUC12s from base estimate
> test_get_drainage_area_estimates.R: HUC12 query: 3 HUC12s, total = 3 sq km, contributing = 3 sq km
> test_get_drainage_area_estimates.R: HUC10 query: 3 HUC12s, total = 3 sq km, contributing = 3 sq km
> test_get_drainage_area_estimates.R: HUC08 query: 3 HUC12s, total = 3 sq km, contributing = 3 sq km
> test_get_drainage_area_estimates.R: HUC12 query: 2 HUC12s, total = 2 sq km, contributing = 2 sq km
> test_get_drainage_area_estimates.R: Filtered 3 disconnected HUC12s from broader query
> test_get_drainage_area_estimates.R: Gage is at the outlet of the flowline (measure 0); no outlet split needed
> test_03_get_functions.R: defaulting to 2025 version of WBD
> test_get_drainage_area_estimates.R: Spherical geometry (s2) switched off
> test_get_drainage_area_estimates.R: although coordinates are longitude/latitude, st_intersects assumes that they
> test_get_drainage_area_estimates.R: are planar
> test_get_drainage_area_estimates.R: Spherical geometry (s2) switched on
> test_get_drainage_area_estimates.R: Spherical geometry (s2) switched off
> test_get_drainage_area_estimates.R: although coordinates are longitude/latitude, st_intersects assumes that they
> test_get_drainage_area_estimates.R: are planar
> test_get_drainage_area_estimates.R: Spherical geometry (s2) switched on
> test_get_drainage_area_estimates.R: Spherical geometry (s2) switched off
> test_get_drainage_area_estimates.R: although coordinates are longitude/latitude, st_intersects assumes that they
> test_get_drainage_area_estimates.R: are planar
> test_get_drainage_area_estimates.R: Spherical geometry (s2) switched on
Saving _problems/test_03_get_functions-245.R
Saving _problems/test_03_get_functions-246.R
Saving _problems/test_03_get_functions-248.R
Saving _problems/test_03_get_functions-257.R
Saving _problems/test_03_get_functions-258.R
Saving _problems/test_03_get_functions-271.R
Saving _problems/test_03_get_functions-274.R
> test_rescale_catchments.R: characteristics service returned NULL, testing cached-input path only
> test_rescale_catchments.R: didn't find data, downloading.
[ FAIL 7 | WARN 16 | SKIP 47 | PASS 429 ]
══ Skipped tests (47) ══════════════════════════════════════════════════════════
• Set HYDROGEOFETCH_INTEGRATION=true for integration tests (47):
'test_00_plot_bbox_nhdplus.R:5:3', 'test_00_plot_local_extra_nhdplus.R:8:3',
'test_00_plot_integration_nhdplus.R:5:3', 'test_00_plot_local_nhdplus.R:8:3',
'test_00_plot_nhdplus.R:6:3', 'test_00_plot_nhdplus.R:90:3',
'test_00_plot_nhdplus.R:134:3', 'test_00_plot_nhdplus.R:164:3',
'test_00_plot_nhdplus.R:201:3', 'test_01_get_nldi.R:81:3',
'test_01_get_nldi.R:117:3', 'test_01_get_nldi.R:207:3',
'test_02_subset.R:137:3', 'test_02_subset.R:193:3',
'test_02_subset_extras.R:94:3', 'test_02_subset_extras.R:156:3',
'test_get_3dhp.R:30:3', 'test_get_drainage_area_estimates.R:481:3',
'test_get_drainage_area_estimates.R:557:3',
'test_get_drainage_area_estimates.R:606:3',
'test_get_drainage_area_estimates.R:644:3',
'test_get_drainage_area_estimates.R:982:3',
'test_get_drainage_area_estimates.R:1063:3',
'test_get_drainage_area_estimates.R:1083:3', 'test_get_nhdplus.R:43:3',
'test_get_nhdplushr.R:3:3', 'test_get_nhdplushr.R:23:3',
'test_get_nhdplushr.R:53:3', 'test_get_nhdplushr.R:80:3',
'test_get_nhdplushr.R:101:3', 'test_get_nhdplushr.R:147:3',
'test_get_nhdplushr.R:174:3', 'test_get_nhdplushr.R:196:3',
'test_get_vaa.R:4:3', 'test_get_vaa.R:39:3', 'test_get_vaa.R:90:3',
'test_hydrogeofetch.R:41:3', 'test_hydrogeofetch.R:57:3',
'test_mainstems.R:46:3', 'test_03_get_functions.R:44:3',
'test_03_get_functions.R:66:3', 'test_03_get_functions.R:159:3',
'test_03_get_functions.R:286:3', 'test_03_get_functions.R:293:3',
'test_03_get_functions.R:327:3', 'test_03_get_functions.R:341:3',
'test_map_nhdplus.R:4:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_03_get_functions.R:245:5'): nhdarea ──────────────────────────
Expected `nhdarea$ftype` to equal "Submerged Stream".
Differences:
`actual` is NULL
`expected` is a character vector ('Submerged Stream')
Backtrace:
▆
1. ├─hydrogeofetch:::with_mock_hgf(...) at test_03_get_functions.R:240:3
2. │ └─httptest2::with_mock_dir(...) at ./helper.R:99:5
3. │ ├─httptest2:::with_mock_path(...)
4. │ │ └─base::eval.parent(expr)
5. │ │ └─base::eval(expr, p)
6. │ └─httptest2::with_mock_api(expr)
7. │ └─base::eval.parent(expr)
8. │ └─base::eval(expr, p)
9. └─testthat::expect_equal(nhdarea$ftype, "Submerged Stream") at test_03_get_functions.R:245:5
── Failure ('test_03_get_functions.R:246:5'): nhdarea ──────────────────────────
Expected `sf::st_crs(nhdarea)$epsg` to equal 4326.
Differences:
`actual` is a character vector (NA)
`expected` is a double vector (4326)
Backtrace:
▆
1. ├─hydrogeofetch:::with_mock_hgf(...) at test_03_get_functions.R:240:3
2. │ └─httptest2::with_mock_dir(...) at ./helper.R:99:5
3. │ ├─httptest2:::with_mock_path(...)
4. │ │ └─base::eval.parent(expr)
5. │ │ └─base::eval(expr, p)
6. │ └─httptest2::with_mock_api(expr)
7. │ └─base::eval.parent(expr)
8. │ └─base::eval(expr, p)
9. └─testthat::expect_equal(sf::st_crs(nhdarea)$epsg, 4326) at test_03_get_functions.R:246:5
── Failure ('test_03_get_functions.R:248:5'): nhdarea ──────────────────────────
Expected `sf::st_crs(nhdarea5070)$epsg` to equal 5070.
Differences:
`actual` is a character vector (NA)
`expected` is a double vector (5070)
Backtrace:
▆
1. ├─hydrogeofetch:::with_mock_hgf(...) at test_03_get_functions.R:240:3
2. │ └─httptest2::with_mock_dir(...) at ./helper.R:99:5
3. │ ├─httptest2:::with_mock_path(...)
4. │ │ └─base::eval.parent(expr)
5. │ │ └─base::eval(expr, p)
6. │ └─httptest2::with_mock_api(expr)
7. │ └─base::eval.parent(expr)
8. │ └─base::eval(expr, p)
9. └─testthat::expect_equal(sf::st_crs(nhdarea5070)$epsg, 5070) at test_03_get_functions.R:248:5
── Failure ('test_03_get_functions.R:257:5'): nhdwaterbody ─────────────────────
Expected `nrow(wb)` to equal 3.
Differences:
`actual` is NULL
`expected` is a double vector (3)
Backtrace:
▆
1. ├─hydrogeofetch:::with_mock_hgf(...) at test_03_get_functions.R:255:3
2. │ └─httptest2::with_mock_dir(...) at ./helper.R:99:5
3. │ ├─httptest2:::with_mock_path(...)
4. │ │ └─base::eval.parent(expr)
5. │ │ └─base::eval(expr, p)
6. │ └─httptest2::with_mock_api(expr)
7. │ └─base::eval.parent(expr)
8. │ └─base::eval(expr, p)
9. └─testthat::expect_equal(nrow(wb), 3) at test_03_get_functions.R:257:5
── Failure ('test_03_get_functions.R:258:5'): nhdwaterbody ─────────────────────
Expected `sf::st_crs(wb)$epsg` to equal 4326.
Differences:
`actual` is a character vector (NA)
`expected` is a double vector (4326)
Backtrace:
▆
1. ├─hydrogeofetch:::with_mock_hgf(...) at test_03_get_functions.R:255:3
2. │ └─httptest2::with_mock_dir(...) at ./helper.R:99:5
3. │ ├─httptest2:::with_mock_path(...)
4. │ │ └─base::eval.parent(expr)
5. │ │ └─base::eval(expr, p)
6. │ └─httptest2::with_mock_api(expr)
7. │ └─base::eval.parent(expr)
8. │ └─base::eval(expr, p)
9. └─testthat::expect_equal(sf::st_crs(wb)$epsg, 4326) at test_03_get_functions.R:258:5
── Failure ('test_03_get_functions.R:271:5'): gagesii ──────────────────────────
Expected `nrow(gages2)` to equal 1.
Differences:
`actual` is NULL
`expected` is a double vector (1)
Backtrace:
▆
1. ├─hydrogeofetch:::with_mock_hgf(...) at test_03_get_functions.R:269:3
2. │ └─httptest2::with_mock_dir(...) at ./helper.R:99:5
3. │ ├─httptest2:::with_mock_path(...)
4. │ │ └─base::eval.parent(expr)
5. │ │ └─base::eval(expr, p)
6. │ └─httptest2::with_mock_api(expr)
7. │ └─base::eval.parent(expr)
8. │ └─base::eval(expr, p)
9. └─testthat::expect_equal(nrow(gages2), 1) at test_03_get_functions.R:271:5
── Error ('test_03_get_functions.R:273:5'): gagesii ────────────────────────────
Error: IDs or a spatial AOI must be passed.
Backtrace:
▆
1. ├─hydrogeofetch:::with_mock_hgf(...) at test_03_get_functions.R:269:3
2. │ └─httptest2::with_mock_dir(...) at ./helper.R:99:5
3. │ ├─httptest2:::with_mock_path(...)
4. │ │ └─base::eval.parent(expr)
5. │ │ └─base::eval(expr, p)
6. │ └─httptest2::with_mock_api(expr)
7. │ └─base::eval.parent(expr)
8. │ └─base::eval(expr, p)
9. └─hydrogeofetch::get_gagesII(AOI = pt, buffer = 3000, basin = TRUE) at test_03_get_functions.R:273:5
10. ├─hydrogeofetch:::query_usgs_oafeat(...)
11. │ ├─base::withVisible(eval(mc, parent.frame()))
12. │ └─base::eval(mc, parent.frame())
13. │ └─base::eval(mc, parent.frame())
14. └─hydrogeofetch (local) `<fn>`(...)
15. └─hydrogeofetch:::check_query_params(...)
[ FAIL 7 | WARN 16 | SKIP 47 | PASS 429 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang