- using R Under development (unstable) (2026-01-22 r89323)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘phsopendata/DESCRIPTION’ ... OK
- this is package ‘phsopendata’ version ‘1.0.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 ‘phsopendata’ can be installed ... OK
See the install log for details.
- checking package 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 ... 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 examples ... ERROR
Running examples in ‘phsopendata-Ex.R’ failed
The error most likely occurred in:
> ### Name: get_dataset
> ### Title: Get Open Data resources from a dataset
> ### Aliases: get_dataset
>
> ### ** Examples
>
> get_dataset("gp-practice-populations", max_resources = 2, rows = 10)
Error in curl::curl_fetch_memory(url, handle = handle): Failure when receiving data from the peer [www.opendata.nhs.scot]:
Recv failure: Connection reset by peer
Request failed [ERROR]. Retrying in 1 seconds...
Error in curl::curl_fetch_memory(url, handle = handle): Failure when receiving data from the peer [www.opendata.nhs.scot]:
Recv failure: Connection reset by peer
Request failed [ERROR]. Retrying in 1.5 seconds...
Error in content$result : $ operator is invalid for atomic vectors
Calls: get_dataset -> <Anonymous> -> map_ -> vctrs_vec_compat
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [14s/15s] ERROR
Running ‘testthat.R’ [13s/14s]
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/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(phsopendata)
>
> test_check("phsopendata")
Starting 2 test processes.
> test-get_latest_resource_id.R: Error in curl::curl_fetch_memory(url, handle = handle): Failure when receiving data from the peer [www.opendata.nhs.scot]:
> test-get_latest_resource_id.R: Recv failure: Connection reset by peer
> test-get_latest_resource_id.R: Request failed [ERROR]. Retrying in 1 seconds...
> test-get_latest_resource_id.R: Error in curl::curl_fetch_memory(url, handle = handle): Failure when receiving data from the peer [www.opendata.nhs.scot]:
> test-get_latest_resource_id.R: Recv failure: Connection reset by peer
> test-get_latest_resource_id.R: Request failed [ERROR]. Retrying in 1.7 seconds...
Saving _problems/test-get_latest_resource_id-2.R
[ FAIL 1 | WARN 0 | SKIP 16 | PASS 51 ]
══ Skipped tests (16) ══════════════════════════════════════════════════════════
• On CRAN (16): 'test-add_context.R:1:1', 'test-dump_download.R:1:1',
'test-error_check.R:1:1', 'test-get_dataset.R:1:1',
'test-get_dataset_additional_info.R:1:1', 'test-get_dataset_context.R:1:1',
'test-get_latest_resource.R:1:1', 'test-get_resource.R:1:1',
'test-get_resource_context.R:1:1', 'test-get_resource_dump.R:1:1',
'test-get_resource_sql.R:1:1', 'test-list_datasets.R:1:1',
'test-list_resources.R:1:1', 'test-parse_error.R:1:1', 'test-phs_GET.R:1:1',
'test-suggest_dataset_names.R:1:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_latest_resource_id.R:2:3'): returns data for a dataset that is listed ──
Expected `get_latest_resource("gp-practice-populations")` not to throw any errors.
Actually got a <curl_error_recv_error> with message:
Failure when receiving data from the peer [www.opendata.nhs.scot]:
Recv failure: Connection reset by peer
[ FAIL 1 | WARN 0 | SKIP 16 | PASS 51 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [7s/11s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs