Running ‘testthat.R’ [17s/31s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CoordinateCleaner)
  The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
  which was just loaded, were retired in October 2023.
  Please refer to R-spatial evolution reports for details, especially
  https://r-spatial.org/r/2023/05/15/evolution4.html.
  It may be desirable to make the sf package available;
  package maintainers should consider adding sf to Suggests:.
  Please note that rgdal will be retired during October 2023,
  plan transition to sf/stars/terra functions using GDAL and PROJ
  at your earliest convenience.
  See https://r-spatial.org/r/2023/05/15/evolution4.html and https://github.com/r-spatial/evolution
  rgdal: version: 1.6-7, (SVN revision 1203)
  Geospatial Data Abstraction Library extensions to R successfully loaded
  Loaded GDAL runtime: GDAL 3.7.2, released 2023/09/05
  Path to GDAL shared files: /usr/share/gdal
   GDAL does not use iconv for recoding strings.
  GDAL binary built with GEOS: TRUE 
  Loaded PROJ runtime: Rel. 9.3.0, September 1st, 2023, [PJ_VERSION: 930]
  Path to PROJ shared files: /home/hornik/.local/share/proj:/usr/share/proj
  PROJ CDN enabled: TRUE
  Linking to sp version:2.1-0
  To mute warnings of possible GDAL/OSR exportToProj4() degradation,
  use options("rgdal_show_exportToProj4_warnings"="none") before loading sp or rgdal.
  rgeos version: 0.6-4, (SVN revision 699)
   GEOS runtime version: 3.12.0-CAPI-1.18.0 
   Please note that rgeos will be retired during October 2023,
  plan transition to sf or terra functions using GEOS at your earliest convenience.
  See https://r-spatial.org/r/2023/05/15/evolution4.html for details.
   GEOS using OverlayNG
   Linking to sp version: 2.1-0 
   Polygon checking: TRUE 
  
  > 
  > test_check("CoordinateCleaner")
  [ FAIL 2 | WARN 54 | SKIP 14 | PASS 31 ]
  
  ══ Skipped tests (14) ══════════════════════════════════════════════════════════
  • On CRAN (9): 'test_coordinatelevel_functions.R:53:1',
    'test_coordinatelevel_functions.R:105:1',
    'test_coordinatelevel_functions.R:138:1',
    'test_coordinatelevel_functions.R:146:1',
    'test_coordinatelevel_functions.R:176:3',
    'test_coordinatelevel_functions.R:204:3',
    'test_coordinatelevel_functions.R:238:1',
    'test_datasetlevel_functions.R:21:3', 'test_datasetlevel_functions.R:81:3'
  • message (5): 'test_wrapper_functions.R:18:3',
    'test_wrapper_functions.R:36:3', 'test_wrapper_functions.R:62:3',
    'test_wrapper_functions.R:99:3', 'test_wrapper_functions.R:113:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_coordinatelevel_functions.R:31:3'): cc_cap works ───────────────
  Error in `explodePolygons(x, ...)`: use sf or terra functions
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_coordinatelevel_functions.R:31:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─CoordinateCleaner::cc_cap(x = exmpl, value = "flagged")
   5.   ├─sp::disaggregate(spolys)
   6.   └─sp::disaggregate(spolys)
   7.     └─sp:::explodePolygons(x, ...)
  ── Error ('test_coordinatelevel_functions.R:43:3'): cc_cen works ───────────────
  Error in `explodePolygons(x, ...)`: use sf or terra functions
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_coordinatelevel_functions.R:43:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─CoordinateCleaner::cc_cen(x = exmpl, value = "flagged")
   5.   ├─sp::disaggregate(spolys)
   6.   └─sp::disaggregate(spolys)
   7.     └─sp:::explodePolygons(x, ...)
  
  [ FAIL 2 | WARN 54 | SKIP 14 | PASS 31 ]
  Error: Test failures
  Execution halted