Running ‘testthat.R’ [21s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(sfnetworks)
  > 
  > test_check("sfnetworks")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • sf::sf_extSoftVersion()["GEOS"] >= "3.7.0" is not TRUE (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_crs.R:10:3): st_transform changes crs for edges and nodes ───────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGRCreateCoordinateTransformation(): transformation not available
  Backtrace:
       █
    1. ├─as_sfnetwork(roxel) %>% st_transform(3857) test_crs.R:10:2
    2. ├─sf::st_transform(., 3857)
    3. └─sfnetworks:::st_transform.sfnetwork(., 3857)
    4.   └─sfnetworks:::change_coords(x, op = st_transform, ...)
    5.     ├─base::do.call(match.fun(op), list(geom, ...))
    6.     ├─(function (x, crs, ...) ...
    7.     └─sf:::st_transform.sfc(...)
    8.       ├─sf::st_sfc(...)
    9.       ├─base::structure(...)
   10.       └─sf:::CPL_transform(...)
  ── Error (test_geometry.R:19:3): st_set_geometry gives an error when replacing edges geometry CRS ──
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGRCreateCoordinateTransformation(): transformation not available
  Backtrace:
      █
   1. ├─sf::st_geometry(st_transform(roxel, 3035)) test_geometry.R:19:2
   2. ├─sf::st_transform(roxel, 3035)
   3. └─sf:::st_transform.sf(roxel, 3035)
   4.   ├─sf::st_transform(st_geometry(x), crs, ...)
   5.   └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   6.     ├─sf::st_sfc(...)
   7.     ├─base::structure(...)
   8.     └─sf:::CPL_transform(...)
  ── Error (test_morphers.R:43:1): (code run outside of `test_that()`) ───────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGRCreateCoordinateTransformation(): transformation not available
  Backtrace:
       █
    1. ├─as_sfnetwork(roxel) %>% st_transform(3035) test_morphers.R:43:0
    2. ├─sf::st_transform(., 3035)
    3. └─sfnetworks:::st_transform.sfnetwork(., 3035)
    4.   └─sfnetworks:::change_coords(x, op = st_transform, ...)
    5.     ├─base::do.call(match.fun(op), list(geom, ...))
    6.     ├─(function (x, crs, ...) ...
    7.     └─sf:::st_transform.sfc(...)
    8.       ├─sf::st_sfc(...)
    9.       ├─base::structure(...)
   10.       └─sf:::CPL_transform(...)
  ── Error (test_paths.R:5:1): (code run outside of `test_that()`) ───────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGRCreateCoordinateTransformation(): transformation not available
  Backtrace:
       █
    1. ├─as_sfnetwork(roxel, directed = FALSE) %>% st_transform(3035) test_paths.R:5:0
    2. ├─sf::st_transform(., 3035)
    3. └─sfnetworks:::st_transform.sfnetwork(., 3035)
    4.   └─sfnetworks:::change_coords(x, op = st_transform, ...)
    5.     ├─base::do.call(match.fun(op), list(geom, ...))
    6.     ├─(function (x, crs, ...) ...
    7.     └─sf:::st_transform.sfc(...)
    8.       ├─sf::st_sfc(...)
    9.       ├─base::structure(...)
   10.       └─sf:::CPL_transform(...)
  ── Error (test_sf.R:4:1): (code run outside of `test_that()`) ──────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGRCreateCoordinateTransformation(): transformation not available
  Backtrace:
       █
    1. ├─`%>%`(...) test_sf.R:4:0
    2. ├─sf::st_as_sf(., foo = "bar")
    3. ├─sf::st_transform(., 4326)
    4. ├─sf::st_buffer(., dist = 500, endCapStyle = "SQUARE")
    5. ├─sf::st_centroid(.)
    6. ├─sf::st_transform(., 3857)
    7. └─sf:::st_transform.sfc(., 3857)
    8.   ├─sf::st_sfc(...)
    9.   ├─base::structure(...)
   10.   └─sf:::CPL_transform(...)
  ── Error (test_spatstat.R:4:5): Converting sfnetwork to linnet works with projected coords ──
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGRCreateCoordinateTransformation(): transformation not available
  Backtrace:
       █
    1. ├─as_sfnetwork(roxel) %>% st_transform(3857) test_spatstat.R:4:4
    2. ├─sf::st_transform(., 3857)
    3. └─sfnetworks:::st_transform.sfnetwork(., 3857)
    4.   └─sfnetworks:::change_coords(x, op = st_transform, ...)
    5.     ├─base::do.call(match.fun(op), list(geom, ...))
    6.     ├─(function (x, crs, ...) ...
    7.     └─sf:::st_transform.sfc(...)
    8.       ├─sf::st_sfc(...)
    9.       ├─base::structure(...)
   10.       └─sf:::CPL_transform(...)
  ── Failure (test_spatstat.R:14:5): Converting sfnetwork to linnet fails with latlong coords ──
  `as.linnet(roxel_sfn)` did not throw an error.
  
  [ FAIL 7 | WARN 8 | SKIP 1 | PASS 72 ]
  Error: Test failures
  Execution halted