- using R Under development (unstable) (2025-10-13 r88918 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'cvdprevent/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'cvdprevent' version '0.2.2'
- 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 hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'cvdprevent' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' 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 ... [0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s] OK
- checking whether the package can be unloaded cleanly ... [0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s] OK
- checking loading without being on the library search path ... [0s] 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 ... [3s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... 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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [13s] ERROR
Running examples in 'cvdprevent-Ex.R' failed
The error most likely occurred in:
> ### Name: cvd_indicator_raw_data
> ### Title: Indicator raw data (JSON)
> ### Aliases: cvd_indicator_raw_data
>
> ### ** Examples
>
> # return all metric data for indicator 'AF: treatment with anticoagulants'
> # (indicator ID 7) in time period 17 at GP practice level (system level ID 5):
> cvd_indicator_raw_data(indicator_id = 7, time_period_id = 17, system_level_id = 5) |>
+ dplyr::slice_head(n = 5) |>
+ dplyr::select(AreaCode, AreaName, Value)
✖ Metric ID is invalid
Error in `dplyr::select()`:
! Can't select columns that don't exist.
✖ Column `AreaCode` doesn't exist.
Backtrace:
▆
1. ├─dplyr::select(...)
2. ├─dplyr:::select.data.frame(...)
3. │ └─tidyselect::eval_select(expr(c(...)), data = .data, error_call = error_call)
4. │ └─tidyselect:::eval_select_impl(...)
5. │ ├─tidyselect:::with_subscript_errors(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─tidyselect:::vars_select_eval(...)
8. │ └─tidyselect:::walk_data_tree(expr, data_mask, context_mask)
9. │ └─tidyselect:::eval_c(expr, data_mask, context_mask)
10. │ └─tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
11. │ └─tidyselect:::walk_data_tree(new, data_mask, context_mask)
12. │ └─tidyselect:::as_indices_sel_impl(...)
13. │ └─tidyselect:::as_indices_impl(...)
14. │ └─tidyselect:::chr_as_locations(x, vars, call = call, arg = arg)
15. │ └─vctrs::vec_as_location(...)
16. └─vctrs (local) `<fn>`()
17. └─vctrs:::stop_subscript_oob(...)
18. └─vctrs:::stop_subscript(...)
19. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [12s] OK
Running 'testthat.R' [12s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [23s] OK
- checking PDF version of manual ... [22s] OK
- checking HTML version of manual ... [5s] OK
- DONE
Status: 1 ERROR