- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.7 (1)
Debian flang version 21.1.7 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘tabxplor/DESCRIPTION’ ... OK
- this is package ‘tabxplor’ version ‘1.3.1’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [2s/3s] OK
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘tabxplor’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [1s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/2s] OK
- checking loading without being on the library search path ... [1s/2s] OK
- checking whether startup messages can be suppressed ... [1s/2s] 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 ... [29s/36s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... [4s/5s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [50s/56s] ERROR
Running ‘testthat.R’ [50s/55s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(tabxplor)
>
> # # CRAN OMP THREAD LIMIT
> # threads_option <- Sys.getenv("OMP_THREAD_LIMIT")
> #Sys.setenv("OMP_THREAD_LIMIT" = 2)
>
>
>
> test_check("tabxplor")
Saving _problems/test-tab-99.R
28 rows with zero or NA weights were removed
Saving _problems/test-tab-158.R
Saving _problems/test-tab-254.R
Saving _problems/test-tab-273.R
[1] "/home/hornik/tmp/scratch/Rtmp5rAsaZ/tab_xl_test.xlsx"
[1] "/home/hornik/tmp/scratch/Rtmp5rAsaZ/tab_xl_test.xlsx"
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 190 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-tab.R:99:3'): tab_num works with missing, NULL, NA, etc. ───────
Error in ``[.data.table`(tabs, , `:=`(paste0(col_vars, "_diff"), purrr::map(rlang::syms(paste0(col_vars, "_mean")), ~eval(.)/dplyr::nth(eval(.), tidyr::replace_na(which(eval(rlang::sym("ref_rows___")))[1], 0)))), by = eval(comp_group))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. ├─... %>% testthat::expect_s3_class("tabxplor_tab") at test-tab.R:99:3
2. ├─testthat::expect_s3_class(., "tabxplor_tab")
3. │ └─testthat::quasi_label(enquo(object))
4. │ └─rlang::eval_bare(expr, quo_get_env(quo))
5. └─tabxplor::tab_num(...)
6. ├─...[]
7. └─data.table:::`[.data.table`(...)
── Error ('test-tab.R:158:3'): tab_many works with numeric variables ───────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `purrr::pmap(list(row_vars, totaltab, totrow, ref, comp, color_num, ci, na_num), ~tab_num(data, !!..1, as.character(col_vars)[col_vars_num], as.character(tab_vars), wt = !!wt, na = ..8, digits = digits[col_vars_num], ref = ..4, ci = ..7, conf_level = conf_level, comp = ..5, color = ..6, totaltab = ..2, totaltab_name = totaltab_name, tot = dplyr::if_else(..3, "row", "no"), total_names = total_names))`: i In index: 1.
Caused by error in `[.data.table`:
! attempt access index 6/6 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_s3_class(...) at test-tab.R:158:3
2. │ └─testthat::quasi_label(enquo(object))
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─tabxplor::tab_many(data, sex, mass, gender)
5. │ ├─... %>% purrr::set_names(row_vars)
6. │ └─purrr::pmap(...)
7. │ └─purrr:::pmap_("list", .l, .f, ..., .progress = .progress)
8. │ ├─purrr:::with_indexed_errors(...)
9. │ │ └─base::withCallingHandlers(...)
10. │ ├─purrr:::call_with_cleanup(...)
11. │ └─tabxplor (local) .f(...)
12. │ └─tabxplor::tab_num(...)
13. │ ├─...[]
14. │ └─data.table:::`[.data.table`(...)
15. ├─purrr::set_names(., row_vars)
16. └─base::.handleSimpleError(...)
17. └─purrr (local) h(simpleError(msg, call))
18. └─cli::cli_abort(...)
19. └─rlang::abort(...)
── Error ('test-tab.R:247:3'): tab_many work with tribble ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `purrr::pmap(., tab_many, data = data, totcol = "no", totaltab = "no")`: i In index: 2.
Caused by error in `purrr::pmap()`:
i In index: 1.
Caused by error in `[.data.table`:
! attempt access index 6/6 in VECTOR_ELT
── Error ('test-tab.R:266:3'): tab work with tribble (even many tab_vars) ──────
<purrr_error_indexed/rlang_error/error/condition>
Error in `purrr::pmap(., tab, data = data)`: i In index: 2.
Caused by error in `purrr::pmap()`:
i In index: 1.
Caused by error in `[.data.table`:
! attempt access index 6/6 in VECTOR_ELT
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 190 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [35s/39s] OK
- checking PDF version of manual ... [9s/12s] OK
- checking HTML version of manual ... [9s/14s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR