Last updated on 2026-02-06 07:52:17 CET.
| Package | ERROR | OK |
|---|---|---|
| phsopendata | 2 | 11 |
Current CRAN status: ERROR: 2, OK: 11
Version: 1.0.2
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_latest_resource
> ### Title: Get the latest resource from a data set
> ### Aliases: get_latest_resource
>
> ### ** Examples
>
> dataset_name <- "gp-practice-contact-details-and-list-sizes"
>
> data <- get_latest_resource(dataset_name)
Error in `get_resource()`:
! Can't find resource with ID `ceddbf27-0686-4f4b-b9a2-0090d28c3864` in
datastore.
Backtrace:
▆
1. └─phsopendata::get_latest_resource(dataset_name)
2. └─phsopendata::get_resource(...)
3. └─phsopendata:::dump_download(res_id)
4. └─cli::cli_abort(...)
5. └─rlang::abort(...)
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.0.2
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)
Request failed [404]. Retrying in 1 seconds...
Request failed [404]. Retrying in 1.5 seconds...
Error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `.f()`:
! API error.
✖ Not Found Error: Not found: Resource "c45f9c1c-4dd9-4ebe-b65f-72f1b884ee2c"
was not found.
Backtrace:
▆
1. └─phsopendata::get_dataset(...)
2. └─purrr::map(...)
3. └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
4. ├─purrr:::with_indexed_errors(...)
5. │ └─base::withCallingHandlers(...)
6. ├─purrr:::call_with_cleanup(...)
7. └─phsopendata (local) .f(.x[[i]], ...)
8. └─phsopendata:::phs_GET("datastore_search", query)
9. └─phsopendata:::error_check(content, call = call)
10. └─cli::cli_abort(c("API error.", x = error_text), call = call)
11. └─rlang::abort(...)
Execution halted
Flavor: r-patched-linux-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.