Last updated on 2025-07-27 01:48:48 CEST.
Package | ERROR | OK |
---|---|---|
cvdprevent | 1 | 12 |
plotor | 13 |
Current CRAN status: ERROR: 1, OK: 12
Version: 0.2.2
Check: examples
Result: ERROR
Running examples in ‘cvdprevent-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: cvd_area_details
> ### Title: Area details
> ### Aliases: cvd_area_details
>
> ### ** Examples
>
> # to see details for '3 Centres PCN' (area_id = 1103) use the following:
> # get the list of tibbles from the function
> returned_list <- cvd_area_details(time_period_id = 17, area_id = 1103)
Error in `httr2::req_perform()`:
! Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [api.cvdprevent.nhs.uk]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. └─cvdprevent::cvd_area_details(time_period_id = 17, area_id = 1103)
2. ├─httr2::resp_body_string(httr2::req_perform(req))
3. │ └─httr2:::check_response(resp)
4. │ └─httr2:::is_response(resp)
5. └─httr2::req_perform(req)
6. └─httr2:::handle_resp(req, resp, error_call = error_call)
7. └─rlang::cnd_signal(resp)
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.2.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [3s/70s]
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(cvdprevent)
>
> test_check("cvdprevent")
[ FAIL 8 | WARN 0 | SKIP 0 | PASS 27 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-cvd_api_functions.R:8:3'): cvd_time_period_list works ────────
Expected `test <- cvd_time_period_list()` to run without any errors.
i Actually got a <httr2_failure> with text:
Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [api.cvdprevent.nhs.uk]:
Connection timed out after 10001 milliseconds
── Error ('test-cvd_api_functions.R:11:3'): cvd_time_period_list works ─────────
Error in `eval(code, test_env)`: object 'test' not found
Backtrace:
▆
1. └─testthat::expect_gte(max(test$TimePeriodID), 17) at test-cvd_api_functions.R:11:3
2. └─testthat::quasi_label(enquo(object), label, arg = "object")
3. └─rlang::eval_bare(expr, quo_get_env(quo))
── Failure ('test-cvd_api_functions.R:17:3'): cvd_time_period_system_levels works ──
Expected `test <- cvd_time_period_system_levels()` to run without any errors.
i Actually got a <httr2_failure> with text:
Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [api.cvdprevent.nhs.uk]:
Connection timed out after 10002 milliseconds
── Failure ('test-cvd_api_functions.R:24:3'): cvd_area_system_level works ──────
Expected `test <- cvd_area_system_level()` to run without any errors.
i Actually got a <httr2_failure> with text:
Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [api.cvdprevent.nhs.uk]:
Connection timed out after 10002 milliseconds
── Failure ('test-cvd_api_functions.R:32:3'): cvd_area_system_level_time_periods works ──
Expected `test <- cvd_area_system_level_time_periods()` to run without any errors.
i Actually got a <httr2_failure> with text:
Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [api.cvdprevent.nhs.uk]:
Connection timed out after 10002 milliseconds
── Failure ('test-cvd_api_functions.R:39:3'): cvd_area_list works ──────────────
Expected `test <- cvd_area_list(system_level_id = 2)` to run without any errors.
i Actually got a <httr2_failure> with text:
Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [api.cvdprevent.nhs.uk]:
Connection timed out after 10004 milliseconds
── Failure ('test-cvd_api_functions.R:46:3'): cvd_area_details works ───────────
Expected `test <- cvd_area_details()` to run without any errors.
i Actually got a <httr2_failure> with text:
Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [api.cvdprevent.nhs.uk]:
Connection timed out after 10001 milliseconds
── Error ('test-cvd_api_functions.R:49:3'): cvd_area_details works ─────────────
Error in `eval(code, test_env)`: object 'test' not found
Backtrace:
▆
1. └─testthat::expect_named(test, c("area_details")) at test-cvd_api_functions.R:49:3
2. └─testthat::quasi_label(enquo(object), label, arg = "object")
3. └─rlang::eval_bare(expr, quo_get_env(quo))
[ FAIL 8 | WARN 0 | SKIP 0 | PASS 27 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Current CRAN status: OK: 13