* using log directory 'd:/RCompile/CRANincoming/R-devel/sgapi.Rcheck' * using R Under development (unstable) (2024-03-14 r86117 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'sgapi/DESCRIPTION' ... OK * this is package 'sgapi' version '1.0.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Andrew Christy ' New submission Possibly misspelled words in DESCRIPTION: APIs (3:36, 9:173) dataframe (9:293) geospatial (9:52) shapefiles (9:346) * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'sgapi' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... 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 ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [19s] ERROR Running 'testthat.R' [19s] Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(sgapi) > > test_check("sgapi") Attaching package: 'magrittr' The following objects are masked from 'package:testthat': equals, is_less_than, not Reading layer `OGRGeoJSON' from data source `https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/MSOA_Dec_2011_Boundaries_Generalised_Clipped_BGC_EW_V3_2022/FeatureServer/0/query?where=1%3D1&outFields=*&geometry=-1.282825,52.354169,0.206626,52.7106&geometryType=esriGeometryEnvelope&inSR=4326&spatialRel=esriSpatialRelIntersects&outSR=4326&geometryPrecision=3&resultOffset=0&f=geojson' using driver `GeoJSON' Simple feature collection with 191 features and 11 fields Geometry type: MULTIPOLYGON Dimension: XY Bounding box: xmin: -1.46 ymin: 52.231 xmax: 0.368 ymax: 52.887 Geodetic CRS: WGS 84 Reading layer `OGRGeoJSON' from data source `https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/MSOA_Dec_2011_Boundaries_Generalised_Clipped_BGC_EW_V3_2022/FeatureServer/0/query?where=1%3D1&outFields=*&geometry=-1.282825,52.354169,0.206626,52.7106&geometryType=esriGeometryEnvelope&inSR=4326&spatialRel=esriSpatialRelIntersects&outSR=4326&geometryPrecision=3&resultOffset=200&f=geojson' using driver `GeoJSON' Simple feature collection with 0 features and 0 fields Bounding box: xmin: NA ymin: NA xmax: NA ymax: NA Geodetic CRS: WGS 84 Error in column name for chosen boundary, or in the list of area names. Check your chosen boundary scale on https://geoportal.statistics.gov.uk/ Reading layer `OGRGeoJSON' from data source `https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/MSOA_Dec_2011_Boundaries_Generalised_Clipped_BGC_EW_V3_2022/FeatureServer/0/query?where=1%3D1&outFields=*&geometry=52.354169,-1.282825,52.7106,0.206626&geometryType=esriGeometryEnvelope&inSR=4326&spatialRel=esriSpatialRelIntersects&outSR=4326&geometryPrecision=3&resultOffset=0&f=geojson' using driver `GeoJSON' Simple feature collection with 0 features and 0 fields Bounding box: xmin: NA ymin: NA xmax: NA ymax: NA Geodetic CRS: WGS 84 Error in boundary name or geometry filter, check your chosen boundary scale on https://geoportal.statistics.gov.uk/ Error in column name for chosen boundary, or in the list of area names. Check your chosen boundary scale on https://geoportal.statistics.gov.uk/ No encoding supplied: defaulting to UTF-8. Rows: 720 Columns: 34 -- Column specification -------------------------------------------------------- Delimiter: "," chr (16): DATE, DATE_NAME, DATE_CODE, DATE_TYPE, GEOGRAPHY_NAME, GEOGRAPHY_C... dbl (17): DATE_TYPECODE, DATE_SORTORDER, GEOGRAPHY, GEOGRAPHY_TYPECODE, GEOG... lgl (1): OBS_CONF i Use `spec()` to retrieve the full column specification for this data. i Specify the column types or set `show_col_types = FALSE` to quiet this message. No encoding supplied: defaulting to UTF-8. Rows: 25000 Columns: 58 -- Column specification -------------------------------------------------------- Delimiter: "," chr (23): DATE, DATE_NAME, DATE_CODE, DATE_TYPE, GEOGRAPHY_NAME, GEOGRAPHY_T... dbl (34): DATE_TYPECODE, DATE_SORTORDER, GEOGRAPHY, GEOGRAPHY_CODE, GEOGRAPH... lgl (1): OBS_CONF i Use `spec()` to retrieve the full column specification for this data. i Specify the column types or set `show_col_types = FALSE` to quiet this message. No encoding supplied: defaulting to UTF-8. Rows: 3750 Columns: 40 -- Column specification -------------------------------------------------------- Delimiter: "," chr (18): DATE_TYPE, GEOGRAPHY_NAME, GEOGRAPHY_CODE, GEOGRAPHY_TYPE, C_SEX_N... dbl (21): DATE, DATE_NAME, DATE_CODE, DATE_TYPECODE, DATE_SORTORDER, GEOGRAP... lgl (1): OBS_CONF i Use `spec()` to retrieve the full column specification for this data. i Specify the column types or set `show_col_types = FALSE` to quiet this message. No encoding supplied: defaulting to UTF-8. Rows: 3750 Columns: 3 -- Column specification -------------------------------------------------------- Delimiter: "," chr (2): GEOGRAPHY_NAME, C_AGE_NAME dbl (1): OBS_VALUE i Use `spec()` to retrieve the full column specification for this data. i Specify the column types or set `show_col_types = FALSE` to quiet this message. No encoding supplied: defaulting to UTF-8. Rows: 3750 Columns: 3 -- Column specification -------------------------------------------------------- Delimiter: "," chr (2): GEOGRAPHY_NAME, C_AGE_NAME dbl (1): OBS_VALUE i Use `spec()` to retrieve the full column specification for this data. i Specify the column types or set `show_col_types = FALSE` to quiet this message. [ FAIL 1 | WARN 1 | SKIP 0 | PASS 51 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-get_boundaries.R:7:3'): A valid boundary returns a list ────── get_boundaries_areaname(...) has type 'NULL', not 'list'. [ FAIL 1 | WARN 1 | SKIP 0 | PASS 51 ] Error: Test failures Execution halted * checking PDF version of manual ... [13s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 1 NOTE