Last updated on 2025-12-19 19:50:56 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 1.4.1 | 15.08 | 207.89 | 222.97 | OK | |
| r-devel-linux-x86_64-debian-gcc | 1.4.1 | 9.75 | 137.49 | 147.24 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 1.4.1 | 24.00 | 321.19 | 345.19 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 1.4.1 | 22.00 | 316.58 | 338.58 | OK | |
| r-devel-windows-x86_64 | 1.4.1 | 15.00 | 194.00 | 209.00 | OK | |
| r-patched-linux-x86_64 | 1.4.1 | 13.04 | 188.34 | 201.38 | OK | |
| r-release-linux-x86_64 | 1.4.1 | 14.15 | 188.68 | 202.83 | OK | |
| r-release-macos-arm64 | 1.4.1 | 3.00 | 50.00 | 53.00 | OK | |
| r-release-macos-x86_64 | 1.4.1 | 7.00 | 107.00 | 114.00 | OK | |
| r-release-windows-x86_64 | 1.4.1 | 16.00 | 185.00 | 201.00 | OK | |
| r-oldrel-macos-arm64 | 1.4.1 | 3.00 | 55.00 | 58.00 | OK | |
| r-oldrel-macos-x86_64 | 1.4.1 | 7.00 | 103.00 | 110.00 | OK | |
| r-oldrel-windows-x86_64 | 1.4.1 | 22.00 | 235.00 | 257.00 | OK |
Version: 1.4.1
Check: examples
Result: ERROR
Running examples in ‘nhdplusTools-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: disambiguate_flowline_indexes
> ### Title: Disambiguate Flowline Indexes
> ### Aliases: disambiguate_flowline_indexes
>
> ### ** Examples
>
> 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"))
>
> flowpath <- dplyr::select(sample_flines,
+ comid = COMID,
+ totda = TotDASqKM,
+ nameid = GNIS_NAME,
+ REACHCODE,
+ ToMeas,
+ FromMeas)
>
> indexes <- get_flowline_index(flowpath,
+ hydro_location,
+ search_radius = 0.2,
+ max_matches = 10)
Warning in check_search_radius(search_radius, points) :
search_radius units not set, trying units of points CRS.
Warning in index_points_to_lines.hy(x, points, search_radius = search_radius, :
converting to LINESTRING, this may be slow, check results
Error in `[.data.table`(matched, , `:=`(N, seq_len(.N)), by = list(point_id)) :
attempt access index 4/4 in VECTOR_ELT
Calls: get_flowline_index ... index_points_to_lines.hy -> left_join -> matcher_dt -> [ -> [.data.table
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.4.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [39s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library("testthat")
>
> test_check("nhdplusTools")
Loading required package: nhdplusTools
Starting 2 test processes.
> test_02_subset.R: All intersections performed in latitude/longitude.
> test_02_subset.R: All intersections performed in latitude/longitude.
> test_02_subset.R: All intersections performed in latitude/longitude.
> test_02_subset.R: All intersections performed in latitude/longitude.
Saving _problems/test_index-114.R
Saving _problems/test_index-151.R
Saving _problems/test_index-202.R
Saving _problems/test_wb_index-14.R
[ FAIL 4 | WARN 0 | SKIP 58 | PASS 300 ]
══ Skipped tests (58) ══════════════════════════════════════════════════════════
• On CRAN (58): 'test_00_plot_bbox_nhdplus.R:5:3',
'test_00_plot_integration_nhdplus.R:6:3',
'test_00_plot_local_extra_nhdplus.R:9:3', 'test_00_plot_local_nhdplus.R:9:3',
'test_01_get_nldi.R:5:3', 'test_01_get_nldi.R:25:3',
'test_01_get_nldi.R:85:3', 'test_01_get_nldi.R:122:3',
'test_01_get_nldi.R:140:3', 'test_01_get_nldi.R:176:3',
'test_01_get_nldi.R:224: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_02_subset.R:135:3', 'test_02_subset.R:191:3',
'test_03_get_functions.R:20:3', 'test_03_get_functions.R:52:3',
'test_03_get_functions.R:75:3', 'test_03_get_functions.R:129:3',
'test_03_get_functions.R:200:3', 'test_03_get_functions.R:216:3',
'test_03_get_functions.R:229:3', 'test_03_get_functions.R:247:3',
'test_03_get_functions.R:254:3', 'test_arcrest.R:51:3',
'test_02_subset_extras.R:94:3', 'test_02_subset_extras.R:149:3',
'test_geoconnex.R:3:3', 'test_geoconnex.R:14:3', 'test_get_3dhp.R:3:3',
'test_get_nhdphr.R:3:3', 'test_get_nhdplus.R:8:3', 'test_get_nhdplus.R:29:3',
'test_get_nhdplus.R:49: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_codes.R:4:3', 'test_get_vaa.R:4:3',
'test_get_vaa.R:38:3', 'test_index.R:13:5', 'test_index.R:61:3',
'test_map_nhdplus.R:4:3', 'test_navigate.R:4:3', 'test_navigate.R:71:3',
'test_nhdplusTools.R:41:3', 'test_nhdplusTools.R:50:3',
'test_rescale_catchments.R:3:3', 'test_get_path.R:69:3',
'test_run_plus_attributes.R:20:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_index.R:113:3'): multipart indexing ────────────────────────────
Error in ``[.data.table`(matched, , `:=`(N, seq_len(.N)), by = list(point_id))`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::capture_warnings(...) at test_index.R:113:3
2. │ └─base::withCallingHandlers(...)
3. └─nhdplusTools::get_flowline_index(lines, points, search_radius = 500)
4. ├─hydroloom::index_points_to_lines(...)
5. └─hydroloom:::index_points_to_lines.data.frame(...)
6. ├─hydroloom::index_points_to_lines(...)
7. └─hydroloom:::index_points_to_lines.hy(...)
8. ├─dplyr::left_join(...)
9. └─hydroloom:::matcher_dt(x, points, search_radius, max_matches = max_matches)
10. ├─matched[, `:=`(N, seq_len(.N)), by = list(point_id)]
11. └─data.table:::`[.data.table`(...)
── Error ('test_index.R:148:3'): disambiguate ──────────────────────────────────
Error in ``[.data.table`(matched, , `:=`(N, seq_len(.N)), by = list(point_id))`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. └─nhdplusTools::get_flowline_index(...) at test_index.R:148:3
2. ├─hydroloom::index_points_to_lines(...)
3. └─hydroloom:::index_points_to_lines.data.frame(...)
4. ├─hydroloom::index_points_to_lines(...)
5. └─hydroloom:::index_points_to_lines.hy(...)
6. ├─dplyr::left_join(...)
7. └─hydroloom:::matcher_dt(x, points, search_radius, max_matches = max_matches)
8. ├─matched[, `:=`(N, seq_len(.N)), by = list(point_id)]
9. └─data.table:::`[.data.table`(...)
── Error ('test_index.R:202:3'): get location ──────────────────────────────────
Error in ``[.data.table`(matched, , `:=`(N, seq_len(.N)), by = list(point_id))`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. └─nhdplusTools::get_flowline_index(sample_flines, points) at test_index.R:202:3
2. ├─hydroloom::index_points_to_lines(...)
3. └─hydroloom:::index_points_to_lines.data.frame(...)
4. ├─hydroloom::index_points_to_lines(...)
5. └─hydroloom:::index_points_to_lines.hy(...)
6. ├─dplyr::left_join(...)
7. └─hydroloom:::matcher_dt(x, points, search_radius, max_matches = max_matches)
8. ├─matched[, `:=`(N, seq_len(.N)), by = list(point_id)]
9. └─data.table:::`[.data.table`(...)
── Error ('test_wb_index.R:14:1'): index to waterbodies ────────────────────────
Error in ``[.data.table`(matched, , `:=`(N, seq_len(.N)), by = list(point_id))`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test_wb_index.R:14:1
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─nhdplusTools::get_waterbody_index(wb, gage_l)
8. └─hydroloom::index_points_to_waterbodies(...)
9. └─hydroloom:::matcher_dt(waterbodies, st_coordinates(points), search_radius)
10. ├─matched[, `:=`(N, seq_len(.N)), by = list(point_id)]
11. └─data.table:::`[.data.table`(...)
[ FAIL 4 | WARN 0 | SKIP 58 | PASS 300 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc