Running ‘testthat.R’ [29s/35s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(checkmate)
  > library(raster)
  Loading required package: sp
  > library(sp)
  > library(sf)
  Linking to GEOS 3.9.1, GDAL 2.4.4, PROJ 5.2.0
  > 
  > test_check("geometr")
  Loading required package: geometr
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_gc_sp.R:61:3): also objects with CRS are properly handled ───────
  Error: no arguments in initialization list
  Backtrace:
      █
   1. ├─geometr::gc_sp(input = input) test_gc_sp.R:61:2
   2. └─geometr::gc_sp(input = input)
   3.   └─geometr:::.local(input, ...)
   4.     └─sp::CRS(theCRS)
  ── Error (test_getCRS.R:18:3): getExtent of a Spatial object ───────────────────
  Error: no arguments in initialization list
  Backtrace:
      █
   1. ├─geometr::setCRS(x = input, crs = "EPSG:4326") test_getCRS.R:18:2
   2. └─geometr::setCRS(x = input, crs = "EPSG:4326")
   3.   └─geometr:::.local(x, crs, ...)
   4.     ├─raster::crs(crs)
   5.     └─raster::crs(crs)
   6.       └─raster:::.local(x, ...)
   7.         └─raster::projection(x, asText = asText)
   8.           └─sp::CRS(x)
  ── Error (test_setCRS.R:42:3): setCRS of a Spatial object ──────────────────────
  Error: error in evaluating the argument 'CRSobj' in selecting a method for function 'spTransform': no arguments in initialization list
  Backtrace:
       █
    1. ├─geometr::setCRS(x = output, crs = "EPSG:4326") test_setCRS.R:42:2
    2. ├─geometr::setCRS(x = output, crs = "EPSG:4326")
    3. │ └─geometr:::.local(x, crs, ...)
    4. │   ├─sp::spTransform(x, CRSobj = crs(crs))
    5. │   ├─raster::crs(crs)
    6. │   └─raster::crs(crs)
    7. │     └─raster:::.local(x, ...)
    8. │       └─raster::projection(x, asText = asText)
    9. │         └─sp::CRS(x)
   10. │           └─base::stop(res[[2]])
   11. └─base::.handleSimpleError(...)
   12.   └─base:::h(simpleError(msg, call))
  
  [ FAIL 3 | WARN 0 | SKIP 2 | PASS 576 ]
  Error: Test failures
  Execution halted