Last updated on 2026-02-04 04:50:41 CET.
| Package | ERROR | OK |
|---|---|---|
| phsopendata | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
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-devel-linux-x86_64-debian-gcc