- using R version 4.4.0 (2024-04-24)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-13 (Debian 13.2.0-23) 13.2.0
GNU Fortran (Debian 13.2.0-23) 13.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘sgapi/DESCRIPTION’ ... OK
- this is package ‘sgapi’ version ‘1.0.2’
- 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 ‘sgapi’ can be installed ... OK
See the install log for details.
- 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/2s] OK
- checking loading without being on the library search path ... [1s/1s] 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 ... [10s/13s] OK
- checking Rd files ... [0s/1s] 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 ... [0s/1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [4s/13s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [8s/28s] ERROR
Running ‘testthat.R’ [8s/28s]
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=*&geometry=-1.282825%2C52.354169%2C0.206626%2C52.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%2C52.354169%2C0.206626%2C52.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
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?where=%20(LAD22NM%20%3D%20'Derbyshire%20Dales'%20OR%20LAD22NM%20%3D%20'Harrogate'%20OR%20LAD22NM%20%3D%20'West%20Northamptonshire')%20&outFields=*&outSR=4326&f=geojson'
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/MSOA_Dec_2011_Boundaries_Generalised_Clipped_BGC_EW_V3_2022/FeatureServer/0/query?where=1%3D1&outFields=*&geometry=52.354169%2C-1.282825%2C52.7106%2C0.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
Reading layer `GeoJSONSeq' from data source
`https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/Local_Authority_Districts_December_2022_UK_BGC_V2/FeatureServer/0/query?where=%20(L22NM%20%3D%20'Derbyshire%20Dales'%20OR%20L22NM%20%3D%20'Harrogate')%20&outFields=*&outSR=4326&f=geojson'
using driver `GeoJSONSeq'
Re-reading with feature count reset from 1 to 0
Simple feature collection with 0 features and 0 fields
Bounding box: xmin: NA ymin: NA xmax: NA ymax: NA
Geodetic CRS: WGS 84
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 2 | WARN 0 | SKIP 0 | PASS 50 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_table.R:34:3'): Valid table ID returns a vector ──────────
Expected `get_table_link_lookup(...)` to run without any errors.
i Actually got a <simpleError> with text:
Failed writing received data to disk/application
── Error ('test-get_table.R:39:3'): Valid table ID returns a list ──────────────
Error in `curl::curl_fetch_memory(url, handle = handle)`: Failed writing received data to disk/application
Backtrace:
▆
1. ├─testthat::expect_type(...) at test-get_table.R:39:3
2. │ └─testthat::quasi_label(enquo(object), arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─sgapi::get_table_link_lookup(...)
5. └─httr::GET(paste0(api_link_count))
6. └─httr:::request_perform(req, hu$handle$handle)
7. ├─httr:::request_fetch(req$output, req$url, handle)
8. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
9. └─curl::curl_fetch_memory(url, handle = handle)
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 50 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [5s/7s] OK
- checking HTML version of manual ... [0s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR