- using R version 4.4.1 (2024-06-14)
- using platform: x86_64-apple-darwin20
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 12.2.0
- running under: macOS Ventura 13.3.1
- using session charset: UTF-8
- checking for file ‘happign/DESCRIPTION’ ... OK
- this is package ‘happign’ version ‘0.3.1’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘happign’ can be installed ... [11s/14s] OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [4s/4s] OK
- checking whether the package can be loaded with stated dependencies ... [3s/3s] OK
- checking whether the package can be unloaded cleanly ... [3s/4s] OK
- checking whether the namespace can be loaded with stated dependencies ... [4s/4s] OK
- checking whether the namespace can be unloaded cleanly ... [4s/4s] OK
- checking loading without being on the library search path ... [4s/4s] OK
- checking whether startup messages can be suppressed ... [4s/4s] OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [9s/9s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [4s/4s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [7s/13s] ERROR
Running ‘testthat.R’ [7s/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 file1445b225f7fa2 in dataset /private/var/folders/2b/t0kwbtmn3p7brv2mvx39c9cr0000gn/T/Rtmp6mWf2O/file1445b225f7fa2.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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [8s/9s] OK
- checking PDF version of manual ... [5s/5s] OK
- DONE
Status: 1 ERROR
- using check arguments '--no-clean-on-error '