Running ‘testthat.R’ [21s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(himach)
  > 
  > test_check("himach")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_grid.R:5:1): (code run outside of `test_that()`) ────────────────
  Error: OGRCreateCoordinateTransformation() returned NULL: PROJ available?
  Backtrace:
      █
   1. ├─sf::st_transform(NZ_buffer30, crs = crs_Pacific) test_grid.R:5:0
   2. └─sf:::st_transform.sfc(NZ_buffer30, crs = crs_Pacific)
   3.   ├─sf::st_sfc(...)
   4.   ├─base::structure(...)
   5.   └─sf:::CPL_transform(...)
  ── Error (test_map.R:10:3): Route mapping ──────────────────────────────────────
  Error: OGRCreateCoordinateTransformation() returned NULL: PROJ available?
  Backtrace:
      █
   1. ├─sf::st_transform(NZ_coast, crs = crs_Pacific) test_map.R:10:2
   2. └─sf:::st_transform.sfc(NZ_coast, crs = crs_Pacific)
   3.   ├─sf::st_sfc(...)
   4.   ├─base::structure(...)
   5.   └─sf:::CPL_transform(...)
  ── Error (test_map.R:71:3): can make range envelope ────────────────────────────
  Error: lwgeom required: install that first
  Backtrace:
      █
   1. ├─testthat::expect_known_value(...) test_map.R:71:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─`%>%`(...)
   5. ├─base::unlist(.)
   6. ├─himach:::make_range_envelope(...)
   7. │ └─`%>%`(...)
   8. ├─sf::st_make_valid(.)
   9. └─sf:::st_make_valid.sfc(.)
  ── Error (???): find_route works with subsonic option ──────────────────────────
  Error: OGRCreateCoordinateTransformation() returned NULL: PROJ available?
  Backtrace:
       █
    1. ├─`%>%`(...)
    2. ├─dplyr::mutate(., envelope = st_area(envelope))
    3. ├─dplyr::mutate(., across(c(gc, crow), st_length))
    4. ├─dplyr::slice(., c(1, 3, 8))
    5. ├─dplyr::select(., -timestamp)
    6. └─himach::find_route(...)
    7.   └─himach::find_leg(...)
    8.     └─himach:::find_leg_really(...)
    9.       ├─sf::st_transform(ap_loc$ap_locs, crs = use_crs, quiet = FALSE)
   10.       └─sf:::st_transform.sfc(ap_loc$ap_locs, crs = use_crs, quiet = FALSE)
   11.         ├─sf::st_sfc(...)
   12.         ├─base::structure(...)
   13.         └─sf:::CPL_transform(...)
  ── Error (???): Find multiple routes for multiple aircraft ─────────────────────
  Error: OGRCreateCoordinateTransformation() returned NULL: PROJ available?
  Backtrace:
       █
    1. ├─`%>%`(...)
    2. ├─dplyr::mutate(., envelope = st_area(envelope))
    3. ├─dplyr::mutate(., across(c(gc, crow), st_length))
    4. ├─dplyr::slice(., c(4, 7, 25))
    5. ├─dplyr::select(., -timestamp)
    6. └─himach::find_routes(...)
    7.   ├─purrr::reduce(...)
    8.   │ └─purrr:::reduce_impl(.x, .f, ..., .init = .init, .dir = .dir)
    9.   │   └─purrr:::reduce_init(.x, .init, left = left)
   10.   │     └─rlang::is_empty(x)
   11.   └─base::lapply(...)
   12.     └─himach:::FUN(X[[i]], ...)
   13.       └─himach::find_route(ac, ap2, ap_loc = airports, ...)
   14.         └─himach::find_leg(...)
   15.           └─himach:::find_leg_really(...)
   16.             ├─sf::st_transform(ap_loc$ap_locs, crs = use_crs, quiet = FALSE)
   17.             └─sf:::st_transform.sfc(ap_loc$ap_locs, crs = use_crs, quiet = FALSE)
   18.               ├─sf::st_sfc(...)
   19.               ├─base::structure(...)
   20.               └─sf:::CPL_transform(...)
  
  [ FAIL 5 | WARN 4 | SKIP 0 | PASS 37 ]
  Error: Test failures
  Execution halted