Package check result: OK Changes to worse in reverse depends: Package: nhdplusTools Check: examples New result: ERROR Running examples in ‘nhdplusTools-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: get_waterbody_index > ### Title: Get Waterbody Index > ### Aliases: get_waterbody_index > > ### ** Examples > > > source(system.file("extdata/sample_data.R", package = "nhdplusTools")) Request failed [503]. Retrying in 1 seconds... Request failed [503]. Retrying in 1.5 seconds... > > waterbodies <- sf::st_transform( + sf::read_sf(sample_data, "NHDWaterbody"), 5070) Error: Cannot open "/home/hornik/tmp/scratch/Rtmp7nY168/nhdplusTools/sample_natseamless.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 disambiguate_flowline_indexes 0.384 0.008 11.15 Package: nhdplusTools Check: tests New result: ERROR Running ‘testthat.R’ [27s/40s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library("testthat") > > test_check("nhdplusTools") Loading required package: nhdplusTools Starting 2 test processes. > test_00_plot_integration_nhdplus.R: Request failed [503]. Retrying in 1.1 seconds... > test_00_plot_bbox_nhdplus.R: Request failed [503]. Retrying in 1.7 seconds... > test_00_plot_integration_nhdplus.R: Request failed [503]. Retrying in 1.3 seconds... > test_00_plot_bbox_nhdplus.R: Request failed [503]. Retrying in 1.1 seconds... > test_00_plot_local_extra_nhdplus.R: Request failed [503]. Retrying in 1.3 seconds... > test_00_plot_local_nhdplus.R: Request failed [503]. Retrying in 1.6 seconds... > test_00_plot_local_extra_nhdplus.R: Request failed [503]. Retrying in 2.7 seconds... > test_00_plot_local_nhdplus.R: Request failed [503]. Retrying in 3.6 seconds... > test_00_plot_nhdplus.R: Request failed [503]. Retrying in 1 seconds... > test_00_plot_nhdplus.R: Request failed [503]. Retrying in 3.7 seconds... > test_02_subset.R: Request failed [503]. Retrying in 1.9 seconds... > test_02_subset.R: Request failed [503]. Retrying in 1 seconds... Saving _problems/test_02_subset-35.R > test_02_subset_extras.R: Request failed [503]. Retrying in 1 seconds... > test_02_subset_extras.R: Request failed [503]. Retrying in 1.6 seconds... > test_02_subset_extras.R: Cannot open data source /home/hornik/tmp/scratch/Rtmp5FvD5b/nhdplusTools/sample_natseamless.gpkg > test_02_subset_extras.R: Request failed [503]. Retrying in 1.7 seconds... > test_02_subset_extras.R: Request failed [503]. Retrying in 1.5 seconds... Saving _problems/test_calc_network-60.R Saving _problems/test_02_subset_extras-16.R Saving _problems/test_02_subset_extras-70.R > test_get_geometry.R: Request failed [503]. Retrying in 1 seconds... > test_get_geometry.R: Request failed [503]. Retrying in 1.4 seconds... > test_get_geometry.R: Request failed [503]. Retrying in 1 seconds... > test_get_geometry.R: Request failed [503]. Retrying in 3.3 seconds... Saving _problems/test_get_geometry-5.R Saving _problems/test_get_geometry-28.R > test_get_path.R: Dendritic routing will be applied. Diversions are assumed to have 0 flow fraction. > test_map_nhdplus.R: Request failed [503]. Retrying in 1 seconds... > test_get_path.R: Dendritic routing will be applied. Diversions are assumed to have 0 flow fraction. > test_map_nhdplus.R: Request failed [503]. Retrying in 1 seconds... > test_get_path.R: Dendritic routing will be applied. Diversions are assumed to have 0 flow fraction. > test_run_plus_attributes.R: Dendritic routing will be applied. Diversions are assumed to have 0 flow fraction. > test_run_plus_attributes.R: Dendritic routing will be applied. Diversions are assumed to have 0 flow fraction. > test_wb_index.R: Request failed [503]. Retrying in 1.8 seconds... > test_wb_index.R: Request failed [503]. Retrying in 3.8 seconds... Saving _problems/test_wb_index-4.R [ FAIL 7 | WARN 0 | SKIP 58 | PASS 254 ] ══ Skipped tests (58) ══════════════════════════════════════════════════════════ • On CRAN (58): 'test_00_plot_integration_nhdplus.R:6:3', 'test_00_plot_bbox_nhdplus.R:5: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_02_subset.R:137:3', 'test_02_subset.R:193: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_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_geoconnex.R:3:3', 'test_geoconnex.R:14:3', 'test_get_3dhp.R:3:3', 'test_02_subset_extras.R:94:3', 'test_02_subset_extras.R:149:3', 'test_get_codes.R:4: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_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_get_path.R:69: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_run_plus_attributes.R:21:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_02_subset.R:35:3'): subset runs as expected ──────────────────── Error: Cannot open "/home/hornik/tmp/scratch/Rtmp5FvD5b/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, "NHDFlowline_Network") at test_02_subset.R:35:3 2. ├─sf::st_read(...) 3. └─sf:::st_read.character(...) 4. └─sf:::CPL_read_ogr(...) ── Error ('test_calc_network.R:59:3'): get_terminal ──────────────────────────── Error in `zip::unzip(d, exdir = work_dir)`: zip error: Cannot open zip file `/home/hornik/tmp/scratch/Rtmp3TxaET/nhdplusTools/03_sub.zip` for reading in file zip.c:144 Backtrace: ▆ 1. ├─base::suppressMessages(...) at test_calc_network.R:59:3 2. │ └─base::withCallingHandlers(...) 3. ├─base::source(system.file("extdata/nhdplushr_data.R", package = "nhdplusTools")) 4. │ ├─base::withVisible(eval(ei, envir)) 5. │ └─base::eval(ei, envir) 6. │ └─base::eval(ei, envir) 7. └─global download_pkg_data(...) 8. └─zip::unzip(d, exdir = work_dir) ── Error ('test_02_subset_extras.R:12:3'): subset by bounding box ────────────── Error: Open failed. Backtrace: ▆ 1. └─nhdplusTools::subset_nhdplus(...) at test_02_subset_extras.R:12:3 2. └─nhdplusTools:::get_catchment_layer_name(simplified, nhdplus_data) 3. ├─layer_name %in% sf::st_layers(nhdplus_data)$name 4. └─sf::st_layers(nhdplus_data) 5. └─sf:::CPL_get_layers(dsn, options, do_count) ── Error ('test_02_subset_extras.R:70:3'): by rpu ────────────────────────────── Error: Cannot open "/home/hornik/tmp/scratch/Rtmp5FvD5b/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(nhdplus_path(), "NHDFlowline_Network") at test_02_subset_extras.R:70:3 2. ├─sf::st_read(...) 3. └─sf:::st_read.character(...) 4. └─sf:::CPL_read_ogr(...) ── Error ('test_get_geometry.R:4:3'): get_node ───────────────────────────────── Error: Cannot open "/home/hornik/tmp/scratch/Rtmp5FvD5b/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, "NHDFlowline_Network") at test_get_geometry.R:4:3 2. ├─sf::st_read(...) 3. └─sf:::st_read.character(...) 4. └─sf:::CPL_read_ogr(...) ── Error ('test_get_geometry.R:28:3'): fix_flowdir ───────────────────────────── Error: Cannot open "/home/hornik/tmp/scratch/Rtmp5FvD5b/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, "NHDFlowline_Network") at test_get_geometry.R:28:3 2. ├─sf::st_read(...) 3. └─sf:::st_read.character(...) 4. └─sf:::CPL_read_ogr(...) ── Error ('test_wb_index.R:4:1'): index to waterbodies ───────────────────────── Error: Cannot open "/home/hornik/tmp/scratch/Rtmp3TxaET/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_wb_index.R:4:1 2. ├─sf::st_read(...) 3. └─sf:::st_read.character(...) 4. └─sf:::CPL_read_ogr(...) [ FAIL 7 | WARN 0 | SKIP 58 | PASS 254 ] Error: ! Test failures. Execution halted