Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > # library(s2)
  > # sf::sf_use_s2(TRUE)
  > library(nhdR)
  Loading required package: maps
  Loading required namespace: digest
  > 
  > test_check("nhdR")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (16)
  • This test is very long-running. Probably only suitable for manual execution. (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-utils.R:10:3): find_vpu works with character vpus ───────────────
  Error: OGRCreateCoordinateTransformation() returned NULL: PROJ available?
  Backtrace:
      █
   1. ├─testthat::expect_equal(nhdR:::find_vpu(pnt), "03S") test-utils.R:10:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─nhdR:::find_vpu(pnt)
   5.   ├─sf::st_transform(pnt, sf::st_crs(nhdR::vpu_shp))
   6.   └─sf:::st_transform.sfc(pnt, sf::st_crs(nhdR::vpu_shp))
   7.     ├─sf::st_sfc(...)
   8.     ├─base::structure(...)
   9.     └─sf:::CPL_transform(...)
  ── Error (test-utils.R:16:3): find_vpu works with numeric vpus ─────────────────
  Error: OGRCreateCoordinateTransformation() returned NULL: PROJ available?
  Backtrace:
      █
   1. ├─testthat::expect_equal(nhdR:::find_vpu(pnt), "01") test-utils.R:16:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─nhdR:::find_vpu(pnt)
   5.   ├─sf::st_transform(pnt, sf::st_crs(nhdR::vpu_shp))
   6.   └─sf:::st_transform.sfc(pnt, sf::st_crs(nhdR::vpu_shp))
   7.     ├─sf::st_sfc(...)
   8.     ├─base::structure(...)
   9.     └─sf:::CPL_transform(...)
  
  [ FAIL 2 | WARN 2 | SKIP 17 | PASS 3 ]
  Error: Test failures
  Execution halted