* using log directory ‘/Users/ripley/R/packages/tests-devel/hydroloom.Rcheck’ * using R Under development (unstable) (2026-09-04 r90492) * using platform: aarch64-apple-darwin25.6.0 * R was compiled by Apple clang version 21.0.0 (clang-2100.1.1.101) GNU Fortran (GCC) 14.2.0 * running under: macOS Tahoe 26.6.2 * using session charset: UTF-8 * current time: 2026-09-06 15:42:59 UTC * using option ‘--no-stop-on-test-error’ * 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 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 * 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking whether startup messages can be suppressed ... 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 ... OK * checking Rd files ... 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 ... 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 "/private/var/folders/pk/n4bndnt1287ctrd_ftthnnnr0000gp/T/RtmpJ0j2NE/working_dir/RtmpXaNIIS/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 ... Running ‘testthat.R’ [16s/32s] [17s/33s] ERROR 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 1.6 seconds... Saving _problems/test_add_measures-35.R Request failed [404]. Retrying in 1 seconds... Request failed [404]. Retrying in 1.3 seconds... Saving _problems/test_add_pfafstetter-7.R Request failed [404]. Retrying in 1 seconds... Request failed [404]. Retrying in 3.3 seconds... Saving _problems/test_get_hydro_location-4.R Request failed [404]. Retrying in 1 seconds... Request failed [404]. Retrying in 2.1 seconds... Saving _problems/test_index-6.R Request failed [404]. Retrying in 1.2 seconds... Request failed [404]. Retrying in 1 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 ──────────────────────────────── Error: Cannot open "/private/var/folders/pk/n4bndnt1287ctrd_ftthnnnr0000gp/T/RtmpJ0j2NE/working_dir/RtmpgTN8C7/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 `/private/var/folders/pk/n4bndnt1287ctrd_ftthnnnr0000gp/T/RtmpJ0j2NE/working_dir/RtmpgTN8C7/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 ─────────────────────── Error: Cannot open "/private/var/folders/pk/n4bndnt1287ctrd_ftthnnnr0000gp/T/RtmpJ0j2NE/working_dir/RtmpgTN8C7/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 ──────────────────────────── Error: Cannot open "/private/var/folders/pk/n4bndnt1287ctrd_ftthnnnr0000gp/T/RtmpJ0j2NE/working_dir/RtmpgTN8C7/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()`) ──────────── Error: Cannot open "/private/var/folders/pk/n4bndnt1287ctrd_ftthnnnr0000gp/T/RtmpJ0j2NE/working_dir/RtmpgTN8C7/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 ... OK * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs See ‘/Users/ripley/R/packages/tests-devel/hydroloom.Rcheck/00check.log’ for details. 86.89 real 53.50 user 9.34 sys