Last updated on 2026-01-07 07:49:41 CET.
| Package | ERROR | OK |
|---|---|---|
| phsopendata | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 1.0.1
Check: examples
Result: ERROR
Running examples in ‘phsopendata-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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
Flavor: r-release-linux-x86_64
Version: 1.0.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [8s/8s]
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.6 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.5 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_latest_resource.R:1:1',
'test-get_dataset_context.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
Flavor: r-release-linux-x86_64