Running ‘testthat.R’ [41s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > 
  > test_check("nhdplusTools")
  Loading required package: nhdplusTools
  Starting 2 test processes.
  Saving _problems/test_get_network-165.R
  > test_get_path.R: Dendritic routing will be applied. Diversions are assumed to have 0 flow fraction.
  > test_get_path.R: Dendritic routing will be applied. Diversions are assumed to have 0 flow fraction.
  > 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.
  Saving _problems/test_rebuild_topology-41.R
  [ FAIL 2 | WARN 5 | SKIP 58 | PASS 314 ]
  
  ══ 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_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: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_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_get_path.R:69:3', 'test_map_nhdplus.R:4:3',
    'test_navigate.R:4:3', 'test_navigate.R:71:3', 'test_index.R:13:5',
    'test_index.R:61: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_get_network.R:164:3'): get_UT works ────────────────────────────
  Error: navigate_hydro_network() requires hy_leveled.
    Current input is: hy.
    Use add_toids() then add_levelpaths() to enrich the network.
  Backtrace:
       ▆
    1. ├─testthat::expect_error(get_UT(test_error, 11687180), "Found duplicate id for starting catchment. Duplicate rows in network?") at test_get_network.R:164:3
    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_UT(test_error, 11687180)
    8.   ├─hydroloom::navigate_hydro_network(network, comid, "UT", distance)
    9.   └─hydroloom:::navigate_hydro_network.data.frame(...)
   10.     ├─hydroloom::navigate_hydro_network(hy(x), start, mode, distance)
   11.     └─hydroloom:::navigate_hydro_network.hy(hy(x), start, mode, distance)
   12.       └─hydroloom:::hy_classify_and_redispatch(...)
   13.         └─hydroloom:::hy_dispatch_error(fn_name, required_class, x, guidance)
  ── Failure ('test_rebuild_topology.R:40:3'): make_node_topology ────────────────
  Expected `make_node_topology(y)` to throw a error.
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test_rebuild_topology.R:40:3
   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. └─testthat::expect_error(make_node_topology(y), "Not all non zero toids are in ids")
  
  [ FAIL 2 | WARN 5 | SKIP 58 | PASS 314 ]
  Error:
  ! Test failures.
  Execution halted