- using R Under development (unstable) (2025-11-12 r89009 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'quincunx/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'quincunx' version '0.1.10'
- 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 'quincunx' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package 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 ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] 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 ... [7s] OK
- checking Rd files ... [2s] 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 contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking examples ... [2s] ERROR
Running examples in 'quincunx-Ex.R' failed
The error most likely occurred in:
> ### Name: get_cohorts
> ### Title: Get PGS Catalog Cohorts
> ### Aliases: get_cohorts
>
> ### ** Examples
>
> # Get information about specific cohorts by their symbols (acronyms)
> get_cohorts(cohort_symbol = c('23andMe', 'IPOBCS'))
Error in `purrr::map()`:
ℹ In index: 1.
Caused by error:
! object 'at_depth' is not exported by 'namespace:purrr'
Backtrace:
▆
1. ├─quincunx::get_cohorts(cohort_symbol = c("23andMe", "IPOBCS"))
2. │ ├─quincunx:::coerce_to_s4_cohorts(...)
3. │ └─quincunx:::get_cohort_by_cohort_symbol(...)
4. │ ├─purrr::pmap(...)
5. │ │ └─purrr:::pmap_("list", .l, .f, ..., .progress = .progress)
6. │ │ └─purrr:::vctrs_list_compat(.l, error_call = .purrr_error_call)
7. │ │ └─purrr:::vctrs_vec_compat(x, user_env)
8. │ └─purrr::map(...)
9. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─purrr (local) .f(.x[[i]], ...)
14. │ └─quincunx (local) f(...)
15. │ └─quincunx:::get(...)
16. │ └─quincunx:::request_all(...)
17. │ └─quincunx:::is_paginated(obj$json)
18. │ └─quincunx:::count(json_string)
19. ├─base::loadNamespace(x)
20. │ └─base::namespaceImportFrom(...)
21. │ └─base::importIntoEnv(impenv, impnames, ns, impvars)
22. │ └─base::stop(...)
23. └─base::.handleSimpleError(...)
24. └─purrr (local) h(simpleError(msg, call))
25. └─cli::cli_abort(...)
26. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [2s] ERROR
Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(quincunx)
>
> test_check("quincunx")
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 12 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-count.R:2:3'): normal usage ────────────────────────────────────
Error: object 'at_depth' is not exported by 'namespace:purrr'
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-count.R:2:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─quincunx:::count("{\"count\":0,\"next\": \"asdas\"}")
5. └─base::loadNamespace(x)
6. └─base::namespaceImportFrom(...)
7. └─base::importIntoEnv(impenv, impnames, ns, impvars)
── Error ('test-count.R:7:3'): returns the top level match ─────────────────────
Error: object 'at_depth' is not exported by 'namespace:purrr'
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-count.R:7:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─quincunx:::count("{\"count\":42,\"next\":{\"count\":43}}")
5. └─base::loadNamespace(x)
6. └─base::namespaceImportFrom(...)
7. └─base::importIntoEnv(impenv, impnames, ns, impvars)
── Error ('test-count.R:11:3'): no match returns NA_integer_ ───────────────────
Error: object 'at_depth' is not exported by 'namespace:purrr'
Backtrace:
▆
1. ├─testthat::expect_true(is.na(count("{\"count\": null}"))) at test-count.R:11:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─quincunx:::count("{\"count\": null}")
5. └─base::loadNamespace(x)
6. └─base::namespaceImportFrom(...)
7. └─base::importIntoEnv(impenv, impnames, ns, impvars)
── Error ('test-is_paginated.R:3:3'): is not paginated ─────────────────────────
Error: object 'at_depth' is not exported by 'namespace:purrr'
Backtrace:
▆
1. ├─testthat::expect_false(is_paginated("{\n \"id\": \"PGP000001\"\n }")) at test-is_paginated.R:3:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─quincunx:::is_paginated("{\n \"id\": \"PGP000001\"\n }")
5. │ └─quincunx:::count(json_string)
6. └─base::loadNamespace(x)
7. └─base::namespaceImportFrom(...)
8. └─base::importIntoEnv(impenv, impnames, ns, impvars)
── Error ('test-is_paginated.R:13:3'): is paginated ────────────────────────────
Error: object 'at_depth' is not exported by 'namespace:purrr'
Backtrace:
▆
1. ├─testthat::expect_true(is_paginated(txt)) at test-is_paginated.R:13:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─quincunx:::is_paginated(txt)
5. │ └─quincunx:::count(json_string)
6. └─base::loadNamespace(x)
7. └─base::namespaceImportFrom(...)
8. └─base::importIntoEnv(impenv, impnames, ns, impvars)
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 12 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [22s] OK
- checking HTML version of manual ... [15s] OK
- DONE
Status: 2 ERRORs