Running ‘testthat.R’ [55s/56s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > 
  > test_check("nhdplusTools")
  Loading required package: nhdplusTools
  Starting 2 test processes
  [ FAIL 4 | WARN 33 | SKIP 51 | PASS 255 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (51)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_get_codes.R:85:3'): get_pfaf ───────────────────────────────────
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. └─nhdplusTools::get_pfaf(fl, max_level = 2) at test_get_codes.R:85:2
   2.   └─nhdplusTools:::cleanup_pfaf(pfaf)
   3.     ├─base::`[<-`(...)
   4.     └─tibble:::`[<-.tbl_df`(...)
   5.       └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   6.         └─tibble:::tbl_subassign_row(xo, i, value, i_arg, value_arg, call)
   7.           ├─base::withCallingHandlers(...)
   8.           └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test_get_path.R:4:3'): reweight ─────────────────────────────────────
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. └─nhdplusTools:::reweight(x, override_factor = 5) at test_get_path.R:4:2
   2.   ├─base::`[<-`(`*tmp*`, 1:nrow(sub), , value = `<tibble[,5]>`)
   3.   └─tibble:::`[<-.tbl_df`(`*tmp*`, 1:nrow(sub), , value = `<tibble[,5]>`)
   4.     └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   5.       └─tibble:::tbl_subassign_row(xo, i, value, i_arg, value_arg, call)
   6.         ├─base::withCallingHandlers(...)
   7.         └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test_get_path.R:43:3'): calculate level path ────────────────────────
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
       ▆
    1. ├─dplyr::left_join(...) at test_get_path.R:43:2
    2. ├─dplyr:::left_join.data.frame(...)
    3. │ └─dplyr::auto_copy(x, y, copy = copy)
    4. │   ├─dplyr::same_src(x, y)
    5. │   └─dplyr:::same_src.data.frame(x, y)
    6. │     └─base::is.data.frame(y)
    7. └─nhdplusTools::get_levelpaths(test_flowline, status = TRUE)
    8.   └─base::lapply(x, reweight, override_factor = override_factor)
    9.     └─nhdplusTools (local) FUN(X[[i]], ...)
   10.       ├─base::`[<-`(`*tmp*`, 1:nrow(sub), , value = `<tibble[,7]>`)
   11.       └─tibble:::`[<-.tbl_df`(`*tmp*`, 1:nrow(sub), , value = `<tibble[,7]>`)
   12.         └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   13.           └─tibble:::tbl_subassign_row(xo, i, value, i_arg, value_arg, call)
   14.             ├─base::withCallingHandlers(...)
   15.             └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  ── Error ('test_get_path.R:132:3'): from vignette works ────────────────────────
  Error in `vectbl_assign(x[[j]], i, recycled_value[[j]])`: DLL requires the use of native symbols
  Backtrace:
      ▆
   1. └─nhdplusTools::get_levelpaths(...) at test_get_path.R:132:2
   2.   └─base::lapply(x, reweight, override_factor = override_factor)
   3.     └─nhdplusTools (local) FUN(X[[i]], ...)
   4.       ├─base::`[<-`(`*tmp*`, 1:nrow(sub), , value = `<tibble[,7]>`)
   5.       └─tibble:::`[<-.tbl_df`(`*tmp*`, 1:nrow(sub), , value = `<tibble[,7]>`)
   6.         └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   7.           └─tibble:::tbl_subassign_row(xo, i, value, i_arg, value_arg, call)
   8.             ├─base::withCallingHandlers(...)
   9.             └─tibble:::vectbl_assign(x[[j]], i, recycled_value[[j]])
  
  [ FAIL 4 | WARN 33 | SKIP 51 | PASS 255 ]
  Error: Test failures
  Execution halted