Running ‘testthat.R’ [6s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(happign)
  Please make sure you have an internet connection.
  Use happign::get_last_news() to display latest geoservice news.
  > 
  > test_check("happign")
  Linking to GEOS 3.11.0, GDAL 3.5.3, PROJ 9.1.0; sf_use_s2() is TRUE
  terra 1.7.78
  
  Attaching package: 'terra'
  
  The following objects are masked from 'package:testthat':
  
      compare, describe
  
  Layer file129194c91fd62 in dataset /private/var/folders/2b/t0kwbtmn3p7brv2mvx39c9cr0000gn/T/RtmprVv2VI/file129194c91fd62.shp already exists:
  use either append=TRUE to append to layer or append=FALSE to overwrite layer
  Use happign::get_last_news() to display latest geoservice news.
  Please make sure you have an internet connection.
  [ FAIL 1 | WARN 0 | SKIP 36 | PASS 85 ]
  
  ══ Skipped tests (36) ══════════════════════════════════════════════════════════
  • On CRAN (36): 'test-get_apicarto_cadastre.R:68:7',
    'test-get_apicarto_cadastre.R:86:7', 'test-get_apicarto_cadastre.R:102:7',
    'test-get_apicarto_cadastre.R:120:7', 'test-get_apicarto_cadastre.R:138:7',
    'test-get_apicarto_codes_postaux.R:7:7', 'test-get_apicarto_gpu.R:39:7',
    'test-get_apicarto_rpg.R:6:7', 'test-get_iso.R:47:7', 'test-get_iso.R:69:7',
    'test-get_iso.R:82:7', 'test-get_location_info.R:3:7',
    'test-get_location_info.R:13:7', 'test-get_location_info.R:25:7',
    'test-get_location_info.R:39:7', 'test-get_location_info.R:54:7',
    'test-get_location_info.R:66:7', 'test-get_wfs.R:33:4',
    'test-get_wfs.R:70:7', 'test-get_wfs.R:93:7', 'test-get_wfs.R:109:7',
    'test-get_wms_raster.R:5:7', 'test-get_wms_raster.R:28:4',
    'test-get_wms_raster.R:42:4', 'test-get_wms_raster.R:56:4',
    'test-get_wms_raster.R:72:4', 'test-get_wms_raster.R:84:4',
    'test-get_wmts.R:2:4', 'test-get_wmts.R:13:4', 'test-get_wmts.R:24:4',
    'test-get_wmts.R:40:4', 'test-get_wmts.R:51:4', 'test-hit_api.R:12:7',
    'test-utils.R:3:4', 'test-utils.R:18:4', 'test-utils.R:90:7'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-get_apicarto_cadastre.R:4:4'): get_geojson work ──────────────
  `poly_json` does not match "\\{\"type\":\"Polygon\",\"coordinates\":\\[\\[\\[-4\\.346.*,47\\.815.*\\],\\[-4\\.345.*,47\\.811.*\\],\\[-4\\.343.*,47\\.812.*\\],\\[-4\\.346.*,47\\.815.*\\]\\]\\]\\}".
  Actual value: "\{"type":"Polygon","coordinates":\[\[\[-4\.3469999999999995,47\.81499999999999\],\[-4\.345999999999999,47\.811\],\[-4\.3439999999999985,47\.81299999999998\],\[-4\.3469999999999995,47\.81499999999999\]\]\]\}"
  Backtrace:
      ▆
   1. └─testthat::expect_match(...) at test-get_apicarto_cadastre.R:4:4
   2.   └─testthat:::expect_match_(...)
  
  [ FAIL 1 | WARN 0 | SKIP 36 | PASS 85 ]
  Error: Test failures
  Execution halted