CRAN Package Check Results for Package sgapi

Last updated on 2026-08-01 18:50:38 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.1.2 5.14 55.82 60.96 OK
r-devel-linux-x86_64-debian-gcc 1.1.2 3.54 44.40 47.94 NOTE
r-devel-linux-x86_64-fedora-clang 1.1.2 8.00 77.70 85.70 OK
r-devel-linux-x86_64-fedora-gcc 1.1.2 38.39 OK
r-devel-windows-x86_64 1.1.2 9.00 113.00 122.00 OK
r-patched-linux-x86_64 1.1.2 5.11 50.00 55.11 OK
r-release-linux-x86_64 1.1.2 4.45 49.13 53.58 OK
r-release-macos-arm64 1.1.2 1.00 178.00 179.00 ERROR
r-release-macos-x86_64 1.1.2 4.00 235.00 239.00 ERROR
r-release-windows-x86_64 1.1.2 11.00 115.00 126.00 OK
r-oldrel-macos-arm64 1.1.2 1.00 147.00 148.00 OK
r-oldrel-macos-x86_64 1.1.2 4.00 188.00 192.00 OK
r-oldrel-windows-x86_64 1.1.2 13.00 125.00 138.00 OK

Check Details

Version: 1.1.2
Check: for new files in some other directories
Result: NOTE Found the following files/directories: ‘~/tmp/scratch/Rtmp18MUaG’ ‘~/tmp/scratch/Rtmp1YDINp’ ‘~/tmp/scratch/Rtmp25WiRE’ ‘~/tmp/scratch/Rtmp2Nsm9G’ ‘~/tmp/scratch/Rtmp2qqvyq’ ‘~/tmp/scratch/Rtmp3kdenU’ ‘~/tmp/scratch/Rtmp3lkX5E’ ‘~/tmp/scratch/Rtmp4BmnjO’ ‘~/tmp/scratch/Rtmp52Zl9Y’ ‘~/tmp/scratch/Rtmp5fExiV’ ‘~/tmp/scratch/Rtmp5qDQc2’ ‘~/tmp/scratch/Rtmp5wJz8a’ ‘~/tmp/scratch/Rtmp646Tt8’ ‘~/tmp/scratch/Rtmp6Brw58’ ‘~/tmp/scratch/Rtmp6Q0jMU’ ‘~/tmp/scratch/Rtmp6cx9hQ’ ‘~/tmp/scratch/Rtmp70lZb6’ ‘~/tmp/scratch/Rtmp7G4es6’ ‘~/tmp/scratch/Rtmp8K0xeo’ ‘~/tmp/scratch/RtmpA0rtZk’ ‘~/tmp/scratch/RtmpA9fNcq’ ‘~/tmp/scratch/RtmpBE6mjr’ ‘~/tmp/scratch/RtmpBI6TDq’ ‘~/tmp/scratch/RtmpBLK3Ts’ ‘~/tmp/scratch/RtmpBO4AWA’ ‘~/tmp/scratch/RtmpBYMQqy’ ‘~/tmp/scratch/RtmpDVuRQe’ ‘~/tmp/scratch/RtmpDXg6Am’ ‘~/tmp/scratch/RtmpE5NVSX’ ‘~/tmp/scratch/RtmpEUBQvr’ ‘~/tmp/scratch/RtmpFx2kwU’ ‘~/tmp/scratch/RtmpGRPJPh’ ‘~/tmp/scratch/RtmpGjq5iD’ ‘~/tmp/scratch/RtmpGvH7w1’ ‘~/tmp/scratch/RtmpHuTMxk’ ‘~/tmp/scratch/RtmpHwYkMg’ ‘~/tmp/scratch/RtmpI0q19u’ ‘~/tmp/scratch/RtmpINNXHP’ ‘~/tmp/scratch/RtmpIRFLB3’ ‘~/tmp/scratch/RtmpIRIErg’ ‘~/tmp/scratch/RtmpIm6i66’ ‘~/tmp/scratch/RtmpJMdtIS’ ‘~/tmp/scratch/RtmpJaVLmb’ ‘~/tmp/scratch/RtmpKH9LZU’ ‘~/tmp/scratch/RtmpKcAILI’ ‘~/tmp/scratch/RtmpLAuSrb’ ‘~/tmp/scratch/RtmpLJBH8i’ ‘~/tmp/scratch/RtmpLdwWrV’ ‘~/tmp/scratch/RtmpMweVtC’ ‘~/tmp/scratch/RtmpO36STi’ ‘~/tmp/scratch/RtmpOBU0W4’ ‘~/tmp/scratch/RtmpOLvZWd’ ‘~/tmp/scratch/RtmpOmgtZG’ ‘~/tmp/scratch/RtmpP2CHBs’ ‘~/tmp/scratch/RtmpPZvVCU’ ‘~/tmp/scratch/RtmpPiOEiA’ ‘~/tmp/scratch/RtmpQ9K54J’ ‘~/tmp/scratch/RtmpQJJ5hW’ ‘~/tmp/scratch/RtmpQM0zaj’ ‘~/tmp/scratch/RtmpQcgN8m’ ‘~/tmp/scratch/RtmpR0pTcw’ ‘~/tmp/scratch/RtmpSFXCK2’ ‘~/tmp/scratch/RtmpSRj264’ ‘~/tmp/scratch/RtmpSc4n3D’ ‘~/tmp/scratch/RtmpSsVWro’ ‘~/tmp/scratch/RtmpSySfwf’ ‘~/tmp/scratch/RtmpTjoIR3’ ‘~/tmp/scratch/RtmpTnbgCJ’ ‘~/tmp/scratch/RtmpTwh4hQ’ ‘~/tmp/scratch/RtmpUZkF7F’ ‘~/tmp/scratch/RtmpVa6MzR’ ‘~/tmp/scratch/RtmpVafKcC’ ‘~/tmp/scratch/RtmpWYVqO2’ ‘~/tmp/scratch/RtmpXePZXW’ ‘~/tmp/scratch/RtmpXhBaHx’ ‘~/tmp/scratch/RtmpY81WgA’ ‘~/tmp/scratch/RtmpY9vm1l’ ‘~/tmp/scratch/RtmpYA1BYW’ ‘~/tmp/scratch/RtmpYnDTbE’ ‘~/tmp/scratch/RtmpZ2XV6x’ ‘~/tmp/scratch/Rtmpa5UhfQ’ ‘~/tmp/scratch/Rtmpb85cxK’ ‘~/tmp/scratch/RtmpbennPN’ ‘~/tmp/scratch/Rtmpbio9F9’ ‘~/tmp/scratch/RtmpbsQ2tS’ ‘~/tmp/scratch/RtmpcOtZkL’ ‘~/tmp/scratch/RtmpcUG7D7’ ‘~/tmp/scratch/RtmpdlvUjR’ ‘~/tmp/scratch/Rtmpe5NbB6’ ‘~/tmp/scratch/RtmpeB2FhY’ ‘~/tmp/scratch/RtmpedMqKE’ ‘~/tmp/scratch/Rtmpf3DaR9’ ‘~/tmp/scratch/RtmpgCYbVX’ ‘~/tmp/scratch/RtmpgR9Cya’ ‘~/tmp/scratch/RtmphYFQeA’ ‘~/tmp/scratch/Rtmphpid4h’ ‘~/tmp/scratch/Rtmphvkf0Z’ ‘~/tmp/scratch/RtmpiBYamx’ ‘~/tmp/scratch/RtmpiNhZmC’ ‘~/tmp/scratch/Rtmpid8CuG’ ‘~/tmp/scratch/RtmpjRwOoz’ ‘~/tmp/scratch/RtmpkO807I’ ‘~/tmp/scratch/RtmpkyE5Di’ ‘~/tmp/scratch/Rtmpl6rYZJ’ ‘~/tmp/scratch/RtmplBZ1di’ ‘~/tmp/scratch/RtmplfNpGR’ ‘~/tmp/scratch/RtmplmvWaD’ ‘~/tmp/scratch/RtmplqzgvD’ ‘~/tmp/scratch/Rtmpmn4Gmj’ ‘~/tmp/scratch/RtmpnvARFu’ ‘~/tmp/scratch/RtmpomtwAe’ ‘~/tmp/scratch/RtmppLGlIB’ ‘~/tmp/scratch/RtmppP1MNu’ ‘~/tmp/scratch/RtmppTV1gT’ ‘~/tmp/scratch/RtmpplKbAw’ ‘~/tmp/scratch/Rtmpq2Uz40’ ‘~/tmp/scratch/RtmpqR45jQ’ ‘~/tmp/scratch/RtmpqsICbx’ ‘~/tmp/scratch/Rtmpr5ZDeC’ ‘~/tmp/scratch/RtmprHjbgv’ ‘~/tmp/scratch/RtmprtPV1s’ ‘~/tmp/scratch/RtmpslZWZP’ ‘~/tmp/scratch/RtmptZJxZx’ ‘~/tmp/scratch/RtmptoqSp7’ ‘~/tmp/scratch/RtmptqkZ1o’ ‘~/tmp/scratch/RtmpuPL32q’ ‘~/tmp/scratch/RtmpubIw8e’ ‘~/tmp/scratch/Rtmpubfm9C’ ‘~/tmp/scratch/RtmpuhDwUC’ ‘~/tmp/scratch/RtmpvyhzuU’ ‘~/tmp/scratch/RtmpwNpqlT’ ‘~/tmp/scratch/RtmpwwMOvZ’ ‘~/tmp/scratch/RtmpxrpLx5’ ‘~/tmp/scratch/RtmpyTDKLr’ ‘~/tmp/scratch/RtmpyqPHj7’ ‘~/tmp/scratch/xvfb-run.05SFYk’ ‘~/tmp/scratch/xvfb-run.0UYJqx’ ‘~/tmp/scratch/xvfb-run.2U0dvz’ ‘~/tmp/scratch/xvfb-run.2m6MAN’ ‘~/tmp/scratch/xvfb-run.3UMtRE’ ‘~/tmp/scratch/xvfb-run.5SYNpw’ ‘~/tmp/scratch/xvfb-run.5tTXC9’ ‘~/tmp/scratch/xvfb-run.6IO6Uc’ ‘~/tmp/scratch/xvfb-run.6uwTu9’ ‘~/tmp/scratch/xvfb-run.BTbK9p’ ‘~/tmp/scratch/xvfb-run.CAtdSS’ ‘~/tmp/scratch/xvfb-run.D18WNg’ ‘~/tmp/scratch/xvfb-run.DGPuGJ’ ‘~/tmp/scratch/xvfb-run.FjH6U0’ ‘~/tmp/scratch/xvfb-run.GQzryV’ ‘~/tmp/scratch/xvfb-run.I7Xnkg’ ‘~/tmp/scratch/xvfb-run.IZBy1Y’ ‘~/tmp/scratch/xvfb-run.LbItb8’ ‘~/tmp/scratch/xvfb-run.MbASw2’ ‘~/tmp/scratch/xvfb-run.OKuRNO’ ‘~/tmp/scratch/xvfb-run.P55yK5’ ‘~/tmp/scratch/xvfb-run.T8aMRc’ ‘~/tmp/scratch/xvfb-run.WF3grA’ ‘~/tmp/scratch/xvfb-run.Wrlyvq’ ‘~/tmp/scratch/xvfb-run.X0a6RU’ ‘~/tmp/scratch/xvfb-run.X9ZZkY’ ‘~/tmp/scratch/xvfb-run.Z4tdwu’ ‘~/tmp/scratch/xvfb-run.afVgDh’ ‘~/tmp/scratch/xvfb-run.b3jL3n’ ‘~/tmp/scratch/xvfb-run.eetjpC’ ‘~/tmp/scratch/xvfb-run.f39tZp’ ‘~/tmp/scratch/xvfb-run.g2iB9o’ ‘~/tmp/scratch/xvfb-run.huCBJS’ ‘~/tmp/scratch/xvfb-run.iDnuAD’ ‘~/tmp/scratch/xvfb-run.lLdug4’ ‘~/tmp/scratch/xvfb-run.nCRIEZ’ ‘~/tmp/scratch/xvfb-run.nqmqSE’ ‘~/tmp/scratch/xvfb-run.pKN72g’ ‘~/tmp/scratch/xvfb-run.qTXVvp’ ‘~/tmp/scratch/xvfb-run.qiPIS4’ ‘~/tmp/scratch/xvfb-run.qxUOhi’ ‘~/tmp/scratch/xvfb-run.rcy2QR’ ‘~/tmp/scratch/xvfb-run.scneXL’ ‘~/tmp/scratch/xvfb-run.tADQKw’ ‘~/tmp/scratch/xvfb-run.tT71rh’ ‘~/tmp/scratch/xvfb-run.uIU4wU’ ‘~/tmp/scratch/xvfb-run.uLhU8u’ ‘~/tmp/scratch/xvfb-run.vQ8t24’ ‘~/tmp/scratch/xvfb-run.vQWeKx’ ‘~/tmp/scratch/xvfb-run.vRbmpT’ ‘~/tmp/scratch/xvfb-run.vbsIUM’ ‘~/tmp/scratch/xvfb-run.wjv8A1’ ‘~/tmp/scratch/xvfb-run.ytNbn7’ ‘~/tmp/scratch/xvfb-run.zvPewB’ Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.1.2
Check: tests
Result: ERROR Running ‘testthat.R’ [3s/147s] 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") 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=*&outSR=4326&geometryPrecision=3&f=geojson&geometry=-1.282825%2C52.354169%2C0.206626%2C52.7106&geometryType=esriGeometryEnvelope&inSR=4326&spatialRel=esriSpatialRelIntersects' 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=*&outSR=4326&geometryPrecision=3&f=geojson&geometry=-1.282825%2C52.354169%2C0.206626%2C52.7106&geometryType=esriGeometryEnvelope&inSR=4326&spatialRel=esriSpatialRelIntersects&resultOffset=2000' 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 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=*&outSR=4326&geometryPrecision=3&f=geojson&geometry=52.354169%2C-1.282825%2C52.7106%2C0.206626&geometryType=esriGeometryEnvelope&inSR=4326&spatialRel=esriSpatialRelIntersects' 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 Reading layer `OGRGeoJSON' from data source `https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/Local_Authority_Districts_December_2022_UK_BGC_V2/FeatureServer/0/query?outSR=4326&outFields=*&f=geojson&where=%20(LAD22NM%20%3D%20'Derbyshire%20Dales'%20OR%20LAD22NM%20%3D%20'Harrogate'%20OR%20LAD22NM%20%3D%20'West%20Northamptonshire')%20' using driver `GeoJSON' Simple feature collection with 3 features and 10 fields Geometry type: POLYGON Dimension: XY Bounding box: xmin: -2.004508 ymin: 51.97729 xmax: -0.7050439 ymax: 54.26161 Geodetic CRS: WGS 84 Reading layer `OGRGeoJSON' from data source `https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/Local_Authority_Districts_December_2022_UK_BGC_V2/FeatureServer/0/query?outSR=4326&outFields=*&f=geojson&where=%20(LAD22NM%20%3D%20'Derbyshire%20Dales'%20OR%20LAD22NM%20%3D%20'Harrogate'%20OR%20LAD22NM%20%3D%20'West%20Northamptonshire'%20OR%20LAD22NM%20%3D%20'Aldershot'%20OR%20LAD22NM%20%3D%20'Aldridge-Brownhills'%20OR%20LAD22NM%20%3D%20'Altrincham%20and%20Sale%20West'%20OR%20LAD22NM%20%3D%20'Amber%20Valley'%20OR%20LAD22NM%20%3D%20'Arundel%20and%20South%20Downs'%20OR%20LAD22NM%20%3D%20'Ashfield'%20OR%20LAD22NM%20%3D%20'Ashford'%20OR%20LAD22NM%20%3D%20'Ashton-under-Lyne'%20OR%20LAD22NM%20%3D%20'Aylesbury'%20OR%20LAD22NM%20%3D%20'Banbury'%20OR%20LAD22NM%20%3D%20'Barking'%20OR%20LAD22NM%20%3D%20'Barnsley%20North'%20OR%20LAD22NM%20%3D%20'Barnsley%20South'%20OR%20LAD22NM%20%3D%20'Barrow%20and%20Furness'%20OR%20LAD22NM%20%3D%20'Basildon%20and%20Billericay'%20OR%20LAD22NM%20%3D%20'Basingstoke'%20OR%20LAD22NM%20%3D%20'Bassetlaw'%20OR%20LAD22NM%20%3D%20'Bath'%20OR%20LAD22NM%20%3D%20'Battersea'%20OR%20LAD22NM%20%3D%20'Beaconsfield'%20OR%20LAD22NM%20%3D%20'Beckenham%20and%20Penge'%20OR%20LAD22NM%20%3D%20'Bedford'%20OR%20LAD22NM%20%3D%20'Bermondsey%20and%20Old%20Southwark'%20OR%20LAD22NM%20%3D%20'Bethnal%20Green%20and%20Stepney'%20OR%20LAD22NM%20%3D%20'Beverley%20and%20Holderness'%20OR%20LAD22NM%20%3D%20'Bexhill%20and%20Battle'%20OR%20LAD22NM%20%3D%20'Bexleyheath%20and%20Crayford')%20' using driver `GeoJSON' Simple feature collection with 8 features and 10 fields Geometry type: MULTIPOLYGON Dimension: XY Bounding box: xmin: -2.004508 ymin: 50.98949 xmax: 1.029241 ymax: 54.26161 Geodetic CRS: WGS 84 Reading layer `OGRGeoJSON' from data source `https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/Local_Authority_Districts_December_2022_UK_BGC_V2/FeatureServer/0/query?outSR=4326&outFields=*&f=geojson&where=%20(LAD22NM%20%3D%20'Bicester%20and%20Woodstock'%20OR%20LAD22NM%20%3D%20'Birkenhead'%20OR%20LAD22NM%20%3D%20'Birmingham%20Edgbaston'%20OR%20LAD22NM%20%3D%20'Birmingham%20Erdington'%20OR%20LAD22NM%20%3D%20'Birmingham%20Hall%20Green%20and%20Moseley')%20' 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 Querying Nomis API -> https://www.nomisweb.co.uk/api/v01/dataset/nm_1_1.data.csv?geography=TYPE480&time=latest Querying Nomis API -> https://www.nomisweb.co.uk/api/v01/dataset/nm_105_1.data.csv?time=latest Saving _problems/test-get_ons_table-6.R Querying Nomis API -> https://www.nomisweb.co.uk/api/v01/dataset/nm_1002_1.data.csv?geography=TYPE265&time=latest Querying Nomis API -> https://www.nomisweb.co.uk/api/v01/dataset/nm_1002_1.data.csv?geography=TYPE265&time=latest&select=GEOGRAPHY_NAME,C_AGE_NAME,OBS_VALUE Querying Nomis API -> https://www.nomisweb.co.uk/api/v01/dataset/nm_1002_1.data.csv?geography=TYPE265&time=latest&select=GEOGRAPHY_NAME,C_AGE_NAME,OBS_VALUE Querying Nomis API -> https://www.nomisweb.co.uk/api/v01/dataset/A_1_1.data.csv?geography=TYPE480&time=latest 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: 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 0 | SKIP 0 | PASS 63 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-get_ons_table.R:6:3'): Valid query returning over 25,000 rows sends a warning ── Error in `scan(file = file, what = what, sep = sep, quote = quote, dec = dec, nmax = nrows, skip = 0, na.strings = na.strings, quiet = TRUE, fill = fill, strip.white = strip.white, blank.lines.skip = blank.lines.skip, multi.line = FALSE, comment.char = comment.char, allowEscapes = allowEscapes, flush = flush, encoding = encoding, skipNul = skipNul)`: cannot read from connection Backtrace: ▆ 1. ├─testthat::expect_warning(get_ons_table("nm_105_1", time = "latest")) at test-get_ons_table.R:6:3 2. │ └─testthat:::expect_condition_matching_(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─sgapi::get_ons_table("nm_105_1", time = "latest") 8. └─utils (local) csv_parser_fnc(nomis_conn) 9. └─utils::read.table(...) 10. └─base::scan(...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 63 ] Error: ! Test failures. Execution halted Flavor: r-release-macos-arm64

Version: 1.1.2
Check: tests
Result: ERROR Running ‘testthat.R’ [6s/168s] 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") 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=*&outSR=4326&geometryPrecision=3&f=geojson&geometry=-1.282825%2C52.354169%2C0.206626%2C52.7106&geometryType=esriGeometryEnvelope&inSR=4326&spatialRel=esriSpatialRelIntersects' 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=*&outSR=4326&geometryPrecision=3&f=geojson&geometry=-1.282825%2C52.354169%2C0.206626%2C52.7106&geometryType=esriGeometryEnvelope&inSR=4326&spatialRel=esriSpatialRelIntersects&resultOffset=2000' 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 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=*&outSR=4326&geometryPrecision=3&f=geojson&geometry=52.354169%2C-1.282825%2C52.7106%2C0.206626&geometryType=esriGeometryEnvelope&inSR=4326&spatialRel=esriSpatialRelIntersects' 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 Reading layer `OGRGeoJSON' from data source `https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/Local_Authority_Districts_December_2022_UK_BGC_V2/FeatureServer/0/query?outSR=4326&outFields=*&f=geojson&where=%20(LAD22NM%20%3D%20'Derbyshire%20Dales'%20OR%20LAD22NM%20%3D%20'Harrogate'%20OR%20LAD22NM%20%3D%20'West%20Northamptonshire')%20' using driver `GeoJSON' Simple feature collection with 3 features and 10 fields Geometry type: POLYGON Dimension: XY Bounding box: xmin: -2.004508 ymin: 51.97729 xmax: -0.7050439 ymax: 54.26161 Geodetic CRS: WGS 84 Reading layer `OGRGeoJSON' from data source `https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/Local_Authority_Districts_December_2022_UK_BGC_V2/FeatureServer/0/query?outSR=4326&outFields=*&f=geojson&where=%20(LAD22NM%20%3D%20'Derbyshire%20Dales'%20OR%20LAD22NM%20%3D%20'Harrogate'%20OR%20LAD22NM%20%3D%20'West%20Northamptonshire'%20OR%20LAD22NM%20%3D%20'Aldershot'%20OR%20LAD22NM%20%3D%20'Aldridge-Brownhills'%20OR%20LAD22NM%20%3D%20'Altrincham%20and%20Sale%20West'%20OR%20LAD22NM%20%3D%20'Amber%20Valley'%20OR%20LAD22NM%20%3D%20'Arundel%20and%20South%20Downs'%20OR%20LAD22NM%20%3D%20'Ashfield'%20OR%20LAD22NM%20%3D%20'Ashford'%20OR%20LAD22NM%20%3D%20'Ashton-under-Lyne'%20OR%20LAD22NM%20%3D%20'Aylesbury'%20OR%20LAD22NM%20%3D%20'Banbury'%20OR%20LAD22NM%20%3D%20'Barking'%20OR%20LAD22NM%20%3D%20'Barnsley%20North'%20OR%20LAD22NM%20%3D%20'Barnsley%20South'%20OR%20LAD22NM%20%3D%20'Barrow%20and%20Furness'%20OR%20LAD22NM%20%3D%20'Basildon%20and%20Billericay'%20OR%20LAD22NM%20%3D%20'Basingstoke'%20OR%20LAD22NM%20%3D%20'Bassetlaw'%20OR%20LAD22NM%20%3D%20'Bath'%20OR%20LAD22NM%20%3D%20'Battersea'%20OR%20LAD22NM%20%3D%20'Beaconsfield'%20OR%20LAD22NM%20%3D%20'Beckenham%20and%20Penge'%20OR%20LAD22NM%20%3D%20'Bedford'%20OR%20LAD22NM%20%3D%20'Bermondsey%20and%20Old%20Southwark'%20OR%20LAD22NM%20%3D%20'Bethnal%20Green%20and%20Stepney'%20OR%20LAD22NM%20%3D%20'Beverley%20and%20Holderness'%20OR%20LAD22NM%20%3D%20'Bexhill%20and%20Battle'%20OR%20LAD22NM%20%3D%20'Bexleyheath%20and%20Crayford')%20' using driver `GeoJSON' Simple feature collection with 8 features and 10 fields Geometry type: MULTIPOLYGON Dimension: XY Bounding box: xmin: -2.004508 ymin: 50.98949 xmax: 1.029241 ymax: 54.26161 Geodetic CRS: WGS 84 Reading layer `OGRGeoJSON' from data source `https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/Local_Authority_Districts_December_2022_UK_BGC_V2/FeatureServer/0/query?outSR=4326&outFields=*&f=geojson&where=%20(LAD22NM%20%3D%20'Bicester%20and%20Woodstock'%20OR%20LAD22NM%20%3D%20'Birkenhead'%20OR%20LAD22NM%20%3D%20'Birmingham%20Edgbaston'%20OR%20LAD22NM%20%3D%20'Birmingham%20Erdington'%20OR%20LAD22NM%20%3D%20'Birmingham%20Hall%20Green%20and%20Moseley')%20' 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 Querying Nomis API -> https://www.nomisweb.co.uk/api/v01/dataset/nm_1_1.data.csv?geography=TYPE480&time=latest Querying Nomis API -> https://www.nomisweb.co.uk/api/v01/dataset/nm_105_1.data.csv?time=latest Querying Nomis API -> https://www.nomisweb.co.uk/api/v01/dataset/nm_1002_1.data.csv?geography=TYPE265&time=latest Querying Nomis API -> https://www.nomisweb.co.uk/api/v01/dataset/nm_1002_1.data.csv?geography=TYPE265&time=latest&select=GEOGRAPHY_NAME,C_AGE_NAME,OBS_VALUE Querying Nomis API -> https://www.nomisweb.co.uk/api/v01/dataset/nm_1002_1.data.csv?geography=TYPE265&time=latest&select=GEOGRAPHY_NAME,C_AGE_NAME,OBS_VALUE Querying Nomis API -> https://www.nomisweb.co.uk/api/v01/dataset/A_1_1.data.csv?geography=TYPE480&time=latest 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: 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: 18354 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. Saving _problems/test-get_table-10.R 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 0 | SKIP 0 | PASS 63 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-get_table.R:10:3'): Valid query returning over 25,000 rows sends a warning ── Expected `get_table("NM_105_1", options = list(time = "latest"))` to throw a warning. [ FAIL 1 | WARN 0 | SKIP 0 | PASS 63 ] Error: ! Test failures. Execution halted Flavor: r-release-macos-x86_64