Running ‘testthat.R’ [19s/52s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > 
  > test_check("nhdplusTools")
  Loading required package: nhdplusTools
  Starting 2 test processes
  [ FAIL 21 | WARN 0 | SKIP 49 | PASS 63 ]
  
  ══ Skipped tests (49) ══════════════════════════════════════════════════════════
  • On CRAN (49): '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:113:3', 'test_01_get_nldi.R:130:3',
    'test_01_get_nldi.R:167:3', 'test_01_get_nldi.R:203:3',
    'test_01_get_nldi.R:246:3', 'test_00_plot_nhdplus.R:5:3',
    'test_00_plot_nhdplus.R:88:3', 'test_00_plot_nhdplus.R:130:3',
    'test_00_plot_nhdplus.R:159:3', 'test_00_plot_nhdplus.R:195:3',
    'test_02_subset.R:135:3', 'test_02_subset.R:191:3',
    'test_03_get_functions.R:21:3', 'test_03_get_functions.R:48:3',
    'test_03_get_functions.R:71:3', 'test_03_get_functions.R:122:3',
    'test_03_get_functions.R:193:3', 'test_03_get_functions.R:209:3',
    'test_03_get_functions.R:222:3', 'test_03_get_functions.R:240:3',
    'test_03_get_functions.R:247:3', 'test_02_subset_extras.R:93:3',
    'test_02_subset_extras.R:147:3', 'test_arcrest.R:58:3',
    'test_geoconnex.R:3:3', 'test_geoconnex.R:14:3', 'test_get_3dhp.R:3:3',
    'test_get_nhdplushr.R:8:3', 'test_get_nhdplushr.R:19:3',
    'test_get_nhdplushr.R:45:3', 'test_get_nhdplushr.R:62:3',
    'test_get_nhdplushr.R:104:3', 'test_get_nhdplushr.R:128:3',
    'test_get_nhdplushr.R:146:3', 'test_get_vaa.R:4:3', 'test_get_vaa.R:38:3',
    'test_get_path.R:69:3', 'test_navigate.R:4:3', 'test_navigate.R:71:3',
    'test_map_nhdplus.R:4:3', 'test_rescale_catchments.R:3:3',
    'test_run_plus_attributes.R:20:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_02_subset.R:35:3'): subset runs as expected ────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/RtmpyD4ipi/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_02_subset_extras.R:12:3'): subset by bounding box ──────────────
  <Rcpp::exception/C++Error/error/condition>
  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 ──────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/Rtmpfu1w9O/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_align_nhdplus_names.R:1:1'): (code run outside of `test_that()`) ──
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/RtmpyD4ipi/nhdplusTools/new_hope.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/new_hope_data.R", package = "nhdplusTools")) at test_align_nhdplus_names.R:1:1
   2. │ ├─base::withVisible(eval(ei, envir))
   3. │ └─base::eval(ei, envir)
   4. │   └─base::eval(ei, envir)
   5. └─sf::read_sf(file.path(data_dir, f), "CatchmentSP")
   6.   ├─sf::st_read(...)
   7.   └─sf:::st_read.character(...)
   8.     └─sf:::CPL_read_ogr(...)
  ── Error ('test_get_codes.R:1:1'): (code run outside of `test_that()`) ─────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/RtmpyD4ipi/nhdplusTools/walker.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", "walker_data.R", package = "nhdplusTools")) at test_get_codes.R:1:1
   2. │ ├─base::withVisible(eval(ei, envir))
   3. │ └─base::eval(ei, envir)
   4. │   └─base::eval(ei, envir)
   5. └─sf::read_sf(file.path(data_dir, f), "CatchmentSP")
   6.   ├─sf::st_read(...)
   7.   └─sf:::st_read.character(...)
   8.     └─sf:::CPL_read_ogr(...)
  ── Error ('test_calc_network.R:19:3'): total drainage area works ───────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/Rtmpfu1w9O/nhdplusTools/walker.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", "walker_data.R", package = "nhdplusTools")) at test_calc_network.R:19: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, f), "CatchmentSP")
   6.   ├─sf::st_read(...)
   7.   └─sf:::st_read.character(...)
   8.     └─sf:::CPL_read_ogr(...)
  ── Error ('test_calc_network.R:42:3'): arbolate sum works ──────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/Rtmpfu1w9O/nhdplusTools/walker.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", "walker_data.R", package = "nhdplusTools")) at test_calc_network.R:42: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, f), "CatchmentSP")
   6.   ├─sf::st_read(...)
   7.   └─sf:::st_read.character(...)
   8.     └─sf:::CPL_read_ogr(...)
  ── Error ('test_calc_network.R:60:3'): get_terminal ────────────────────────────
  Error in `zip::unzip(d, exdir = work_dir)`: zip error: Cannot open zip file `/home/hornik/tmp/scratch/Rtmpfu1w9O/nhdplusTools/03_sub.zip` for reading in file zip.c:141
  Backtrace:
      ▆
   1. ├─base::suppressMessages(...) at test_calc_network.R:60: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_calc_network.R:91:3'): get_terminal ────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/Rtmpfu1w9O/nhdplusTools/walker.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", "walker_data.R", package = "nhdplusTools")) at test_calc_network.R:91: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, f), "CatchmentSP")
   6.   ├─sf::st_read(...)
   7.   └─sf:::st_read.character(...)
   8.     └─sf:::CPL_read_ogr(...)
  ── Error ('test_get_geometry.R:4:3'): get_node ─────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/RtmpyD4ipi/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 ─────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/RtmpyD4ipi/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_get_network.R:3:1'): (code run outside of `test_that()`) ───────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/Rtmpfu1w9O/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_network.R:3:1
   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_get_nhdplus.R:3:1'): (code run outside of `test_that()`) ───────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/RtmpyD4ipi/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_nhdplus.R:3:1
   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_get_path_lengths.R:3:3'): path_lengths ─────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/RtmpyD4ipi/nhdplusTools/walker.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", "walker_data.R", package = "nhdplusTools")) at test_get_path_lengths.R:3: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, f), "CatchmentSP")
   6.   ├─sf::st_read(...)
   7.   └─sf:::st_read.character(...)
   8.     └─sf:::CPL_read_ogr(...)
  ── Error ('test_get_path_lengths.R:52:3'): get_partial_length ──────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/RtmpyD4ipi/nhdplusTools/walker.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", "walker_data.R", package = "nhdplusTools")) at test_get_path_lengths.R:52: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, f), "CatchmentSP")
   6.   ├─sf::st_read(...)
   7.   └─sf:::st_read.character(...)
   8.     └─sf:::CPL_read_ogr(...)
  ── Error ('test_index.R:3:1'): (code run outside of `test_that()`) ─────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/RtmpyD4ipi/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:3:1
   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_get_path.R:23:3'): calculate level path ────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/Rtmpfu1w9O/nhdplusTools/walker.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", "walker_data.R", package = "nhdplusTools")) at test_get_path.R:23: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, f), "CatchmentSP")
   6.   ├─sf::st_read(...)
   7.   └─sf:::st_read.character(...)
   8.     └─sf:::CPL_read_ogr(...)
  ── Error ('test_get_path.R:115:3'): from vignette works ────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/Rtmpfu1w9O/nhdplusTools/new_hope.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/new_hope_data.R", package = "nhdplusTools")) at test_get_path.R:115: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, f), "CatchmentSP")
   6.   ├─sf::st_read(...)
   7.   └─sf:::st_read.character(...)
   8.     └─sf:::CPL_read_ogr(...)
  ── Error ('test_nhdplusTools.R:3:1'): (code run outside of `test_that()`) ──────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/Rtmpfu1w9O/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_nhdplusTools.R:3:1
   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_rebuild_topology.R:1:1'): (code run outside of `test_that()`) ──
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/RtmpyD4ipi/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_rebuild_topology.R:1:1
   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_wb_index.R:4:1'): index to waterbodies ─────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/scratch/Rtmpfu1w9O/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 21 | WARN 0 | SKIP 49 | PASS 63 ]
  Error: Test failures
  Execution halted