Running ‘testthat.R’ [29s/43s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ggspatial)
  > 
  > test_check("ggspatial")
  [ FAIL 3 | WARN 0 | SKIP 21 | PASS 84 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (20)
  • stars aren't implemented (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-df-spatial-sf.R:15:3): df_spatial() works with sf objects ───────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_get_z_range(obj, 3)`: z error - expecting three columns;
  Backtrace:
       ▆
    1. └─ggspatial::load_longlake_data() at test-df-spatial-sf.R:15:2
    2.   └─sf::read_sf(file.path(longlake_folder, names(vector_layers)[i]))
    3.     ├─sf::st_read(...)
    4.     └─sf:::st_read.character(...)
    5.       └─sf:::process_cpl_read_ogr(...)
    6.         └─sf::st_sfc(geom[[i]], crs = attr(geom[[i]], "crs"))
    7.           └─sf:::compute_z_range(lst)
    8.             ├─sf:::zb_wrap(z_range.MtrxSetSetSet(obj))
    9.             │ └─base::stopifnot(is.numeric(zb) && length(zb) == 2)
   10.             └─sf:::z_range.MtrxSetSetSet(obj)
   11.               ├─sf:::zb_wrap(CPL_get_z_range(obj, 3))
   12.               │ └─base::stopifnot(is.numeric(zb) && length(zb) == 2)
   13.               └─sf:::CPL_get_z_range(obj, 3)
  ── Error (test-df-spatial-sp.R:9:3): df_spatial() works with sp objects ────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_get_z_range(obj, 3)`: z error - expecting three columns;
  Backtrace:
       ▆
    1. └─ggspatial::load_longlake_data(vector_format = "sp") at test-df-spatial-sp.R:9:2
    2.   ├─base::suppressWarnings(...)
    3.   │ └─base::withCallingHandlers(...)
    4.   ├─methods::as(...)
    5.   │ └─methods:::.class1(object)
    6.   ├─sf::st_zm(sf::read_sf(file.path(longlake_folder, names(vector_layers)[i])))
    7.   └─sf::read_sf(file.path(longlake_folder, names(vector_layers)[i]))
    8.     ├─sf::st_read(...)
    9.     └─sf:::st_read.character(...)
   10.       └─sf:::process_cpl_read_ogr(...)
   11.         └─sf::st_sfc(geom[[i]], crs = attr(geom[[i]], "crs"))
   12.           └─sf:::compute_z_range(lst)
   13.             ├─sf:::zb_wrap(z_range.MtrxSetSetSet(obj))
   14.             │ └─base::stopifnot(is.numeric(zb) && length(zb) == 2)
   15.             └─sf:::z_range.MtrxSetSetSet(obj)
   16.               ├─sf:::zb_wrap(CPL_get_z_range(obj, 3))
   17.               │ └─base::stopifnot(is.numeric(zb) && length(zb) == 2)
   18.               └─sf:::CPL_get_z_range(obj, 3)
  ── Error (test-longlake-data.R:6:3): longlake data loader works as expected ────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_get_z_range(obj, 3)`: z error - expecting three columns;
  Backtrace:
       ▆
    1. └─ggspatial::load_longlake_data(...) at test-longlake-data.R:6:2
    2.   └─sf::read_sf(file.path(longlake_folder, names(vector_layers)[i]))
    3.     ├─sf::st_read(...)
    4.     └─sf:::st_read.character(...)
    5.       └─sf:::process_cpl_read_ogr(...)
    6.         └─sf::st_sfc(geom[[i]], crs = attr(geom[[i]], "crs"))
    7.           └─sf:::compute_z_range(lst)
    8.             ├─sf:::zb_wrap(z_range.MtrxSetSetSet(obj))
    9.             │ └─base::stopifnot(is.numeric(zb) && length(zb) == 2)
   10.             └─sf:::z_range.MtrxSetSetSet(obj)
   11.               ├─sf:::zb_wrap(CPL_get_z_range(obj, 3))
   12.               │ └─base::stopifnot(is.numeric(zb) && length(zb) == 2)
   13.               └─sf:::CPL_get_z_range(obj, 3)
  
  [ FAIL 3 | WARN 0 | SKIP 21 | PASS 84 ]
  Error: Test failures
  Execution halted