Running ‘testthat.R’ [19s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(foieGras)
  > 
  > test_check("foieGras")
  
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (13)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-fit_mpm.R:7:1): (code run outside of `test_that()`) ─────────────
  Error: OGRCreateCoordinateTransformation() returned NULL: PROJ available?
  Backtrace:
       █
    1. ├─foieGras::grab(xs, "predicted", as_sf = FALSE) test-fit_mpm.R:7:0
    2. │ └─base::lapply(...)
    3. │   └─foieGras:::FUN(X[[i]], ...)
    4. │     └─`%>%`(...)
    5. ├─base::as.data.frame(.)
    6. ├─sf::st_coordinates(.)
    7. ├─sf::st_transform(., "+proj=longlat +datum=WGS84 +no_defs")
    8. └─sf:::st_transform.sf(., "+proj=longlat +datum=WGS84 +no_defs")
    9.   ├─sf::st_transform(st_geometry(x), crs, ...)
   10.   └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   11.     ├─sf::st_sfc(...)
   12.     ├─base::structure(...)
   13.     └─sf:::CPL_transform(...)
  ── Error (test-fmap.R:6:1): (code run outside of `test_that()`) ────────────────
  Error: OGRCreateCoordinateTransformation() returned NULL: PROJ available?
  Backtrace:
       █
    1. ├─foieGras::fmap(xs, what = "fitted") test-fmap.R:6:0
    2. │ └─foieGras::grab(x, what = what)
    3. │   └─base::lapply(...)
    4. │     └─foieGras:::FUN(X[[i]], ...)
    5. │       └─`%>%`(...)
    6. ├─base::as.data.frame(.)
    7. ├─sf::st_coordinates(.)
    8. ├─sf::st_transform(., "+proj=longlat +datum=WGS84 +no_defs")
    9. └─sf:::st_transform.sf(., "+proj=longlat +datum=WGS84 +no_defs")
   10.   ├─sf::st_transform(st_geometry(x), crs, ...)
   11.   └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   12.     ├─sf::st_sfc(...)
   13.     ├─base::structure(...)
   14.     └─sf:::CPL_transform(...)
  ── Error (test-grab.R:6:1): (code run outside of `test_that()`) ────────────────
  Error: OGRCreateCoordinateTransformation() returned NULL: PROJ available?
  Backtrace:
       █
    1. ├─foieGras::grab(xs, what = "fitted") test-grab.R:6:0
    2. │ └─base::lapply(...)
    3. │   └─foieGras:::FUN(X[[i]], ...)
    4. │     └─`%>%`(...)
    5. ├─base::as.data.frame(.)
    6. ├─sf::st_coordinates(.)
    7. ├─sf::st_transform(., "+proj=longlat +datum=WGS84 +no_defs")
    8. └─sf:::st_transform.sf(., "+proj=longlat +datum=WGS84 +no_defs")
    9.   ├─sf::st_transform(st_geometry(x), crs, ...)
   10.   └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   11.     ├─sf::st_sfc(...)
   12.     ├─base::structure(...)
   13.     └─sf:::CPL_transform(...)
  ── Error (test-join.R:7:1): (code run outside of `test_that()`) ────────────────
  Error: OGRCreateCoordinateTransformation() returned NULL: PROJ available?
  Backtrace:
       █
    1. ├─foieGras::join(xs, xm) test-join.R:7:0
    2. │ └─foieGras::grab(ssm, what = what.ssm, as_sf = as_sf)
    3. │   └─base::lapply(...)
    4. │     └─foieGras:::FUN(X[[i]], ...)
    5. │       └─`%>%`(...)
    6. ├─base::as.data.frame(.)
    7. ├─sf::st_coordinates(.)
    8. ├─sf::st_transform(., "+proj=longlat +datum=WGS84 +no_defs")
    9. └─sf:::st_transform.sf(., "+proj=longlat +datum=WGS84 +no_defs")
   10.   ├─sf::st_transform(st_geometry(x), crs, ...)
   11.   └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   12.     ├─sf::st_sfc(...)
   13.     ├─base::structure(...)
   14.     └─sf:::CPL_transform(...)
  ── Error (test-plot_mpm.R:21:1): (code run outside of `test_that()`) ───────────
  Error: OGRCreateCoordinateTransformation() returned NULL: PROJ available?
  Backtrace:
       █
    1. ├─base::plot(xm, xs, pages = 1) test-plot_mpm.R:21:0
    2. ├─foieGras:::plot.fG_mpm(xm, xs, pages = 1)
    3. │ ├─base::nrow(grab(y, "predicted"))
    4. │ └─foieGras::grab(y, "predicted")
    5. │   └─base::lapply(...)
    6. │     └─foieGras:::FUN(X[[i]], ...)
    7. │       └─`%>%`(...)
    8. ├─base::as.data.frame(.)
    9. ├─sf::st_coordinates(.)
   10. ├─sf::st_transform(., "+proj=longlat +datum=WGS84 +no_defs")
   11. └─sf:::st_transform.sf(., "+proj=longlat +datum=WGS84 +no_defs")
   12.   ├─sf::st_transform(st_geometry(x), crs, ...)
   13.   └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   14.     ├─sf::st_sfc(...)
   15.     ├─base::structure(...)
   16.     └─sf:::CPL_transform(...)
  ── Error (test-plot_simfit.R:3:1): (code run outside of `test_that()`) ─────────
  Error: OGRCreateCoordinateTransformation() returned NULL: PROJ available?
  Backtrace:
       █
    1. ├─foieGras::simfit(xs, reps = 2, what = "fitted") test-plot_simfit.R:3:0
    2. │ └─base::lapply(...)
    3. │   └─foieGras:::FUN(X[[i]], ...)
    4. │     └─foieGras::grab(x[k, ], "fitted")
    5. │       └─base::lapply(...)
    6. │         └─foieGras:::FUN(X[[i]], ...)
    7. │           └─`%>%`(...)
    8. ├─base::as.data.frame(.)
    9. ├─sf::st_coordinates(.)
   10. ├─sf::st_transform(., "+proj=longlat +datum=WGS84 +no_defs")
   11. └─sf:::st_transform.sf(., "+proj=longlat +datum=WGS84 +no_defs")
   12.   ├─sf::st_transform(st_geometry(x), crs, ...)
   13.   └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   14.     ├─sf::st_sfc(...)
   15.     ├─base::structure(...)
   16.     └─sf:::CPL_transform(...)
  ── Error (test-plot_ssm.R:7:1): (code run outside of `test_that()`) ────────────
  Error: OGRCreateCoordinateTransformation() returned NULL: PROJ available?
  Backtrace:
       █
    1. ├─base::plot(xs, what = "fitted", pages = 0, outlier = FALSE) test-plot_ssm.R:7:0
    2. ├─foieGras:::plot.fG_ssm(xs, what = "fitted", pages = 0, outlier = FALSE)
    3. │ └─foieGras::grab(x, "fitted", as_sf = FALSE)
    4. │   └─base::lapply(...)
    5. │     └─foieGras:::FUN(X[[i]], ...)
    6. │       └─`%>%`(...)
    7. ├─base::as.data.frame(.)
    8. ├─sf::st_coordinates(.)
    9. ├─sf::st_transform(., "+proj=longlat +datum=WGS84 +no_defs")
   10. └─sf:::st_transform.sf(., "+proj=longlat +datum=WGS84 +no_defs")
   11.   ├─sf::st_transform(st_geometry(x), crs, ...)
   12.   └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   13.     ├─sf::st_sfc(...)
   14.     ├─base::structure(...)
   15.     └─sf:::CPL_transform(...)
  ── Error (test-sim.R:4:1): (code run outside of `test_that()`) ─────────────────
  Error: OGRCreateCoordinateTransformation() returned NULL: PROJ available?
  Backtrace:
       █
    1. ├─foieGras::simfit(xs, what = "fitted", reps = 2, ) test-sim.R:4:0
    2. │ └─base::lapply(...)
    3. │   └─foieGras:::FUN(X[[i]], ...)
    4. │     └─foieGras::grab(x[k, ], "fitted")
    5. │       └─base::lapply(...)
    6. │         └─foieGras:::FUN(X[[i]], ...)
    7. │           └─`%>%`(...)
    8. ├─base::as.data.frame(.)
    9. ├─sf::st_coordinates(.)
   10. ├─sf::st_transform(., "+proj=longlat +datum=WGS84 +no_defs")
   11. └─sf:::st_transform.sf(., "+proj=longlat +datum=WGS84 +no_defs")
   12.   ├─sf::st_transform(st_geometry(x), crs, ...)
   13.   └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   14.     ├─sf::st_sfc(...)
   15.     ├─base::structure(...)
   16.     └─sf:::CPL_transform(...)
  
  [ FAIL 8 | WARN 8 | SKIP 13 | PASS 22 ]
  Error: Test failures
  Execution halted