- using R Under development (unstable) (2026-07-02 r90204)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-16 (Debian 16.1.0-2) 16.1.0
GNU Fortran (Debian 16.1.0-2) 16.1.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-07-03 13:42:59 UTC
- checking for file ‘cardx/DESCRIPTION’ ... OK
- this is package ‘cardx’ version ‘0.3.3’
- 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 ‘cardx’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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/1s] 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/1s] OK
- checking loading without being on the library search path ... [1s/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 ... [11s/13s] 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 examples ... [23s/27s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [225s/133s] ERROR
Running ‘testthat.R’ [225s/132s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> test_check("cardx", stop_on_warning = TRUE)
Loading required package: cardx
Starting 2 test processes.
> test-ard_categorical_ci.data.frame.R: 5 missing observations in the "am" column have been removed.
> test-ard_effectsize_cohens_d.R: For paired samples, 'repeated_measures_d()' provides more options.
> test-ard_effectsize_hedges_g.R: For paired samples, 'repeated_measures_d()' provides more options.
Saving _problems/test-ard_stats_mantelhaen_test-21.R
> test-ard_stats_oneway_test.R: Multiple parameters; naming those columns num.df and den.df.
> test-ard_summary.survey.design.R: Expecting a row with `stat_name = 'method'`, but it is not present.
> test-ard_summary.survey.design.R: Expecting a row with `stat_name = 'method'`, but it is not present.
> test-ard_tabulate_max.R: `AESEV`: "MILD" < "MODERATE" < "SEVERE"
[ FAIL 1 | WARN 0 | SKIP 66 | PASS 636 ]
══ Skipped tests (66) ══════════════════════════════════════════════════════════
• On CRAN (66): 'test-ard_aod_wald_test.R:3:1',
'test-ard_attributes.survey.design.R:3:1', 'test-ard_car_anova.R:3:1',
'test-ard_car_anova.R:15:1', 'test-ard_car_vif.R:3:1',
'test-ard_car_vif.R:17:1', 'test-ard_car_vif.R:28:1',
'test-ard_car_vif.R:50:1', 'test-ard_categorical_ci.survey.design.R:6:1',
'test-ard_continuous_ci.survey.design.R:6:1',
'test-ard_continuous_ci.survey.design.R:193:1',
'test-ard_effectsize_cohens_d.R:3:1', 'test-ard_effectsize_hedges_g.R:3:1',
'test-ard_emmeans_emmeans.R:3:1', 'test-ard_emmeans_emmeans.R:93:1',
'test-ard_incidence_rate.R:7:1', 'test-ard_incidence_rate.R:43:1',
'test-ard_incidence_rate.R:66:1', 'test-ard_emmeans_contrast.R:3:1',
'test-ard_emmeans_contrast.R:100:1', 'test-ard_proportion_ci.R:62:1',
'test-ard_proportion_ci.R:112:1', 'test-ard_regression_basic.R:3:1',
'test-ard_regression.R:3:1', 'test-ard_regression.R:40:1',
'test-ard_stats_aov.R:3:1', 'test-ard_stats_kruskal_test.R:3:1',
'test-ard_stats_mood_test.R:3:1', 'test-ard_stats_oneway_test.R:3:1',
'test-ard_stats_poisson_test.R:73:1', 'test-ard_survey_svychisq.R:3:1',
'test-ard_survey_svyranktest.R:3:1', 'test-ard_survival_survfit.R:3:1',
'test-ard_survival_survfit.R:16:1', 'test-ard_survival_survfit.R:29:1',
'test-ard_survival_survfit.R:42:1', 'test-ard_survival_survfit.R:64:1',
'test-ard_survival_survfit.R:90:1', 'test-ard_survival_survfit.R:120:1',
'test-ard_survival_survfit.R:191:1', 'test-ard_survival_survfit.R:201:1',
'test-ard_survival_survfit.R:225:1', 'test-ard_survival_survfit.R:243:1',
'test-ard_survival_survfit.R:253:1', 'test-ard_survival_survfit_diff.R:36:1',
'test-ard_tabulate.survey.design.R:421:1',
'test-ard_tabulate.survey.design.R:1176:1',
'test-ard_tabulate.survey.design.R:1410:1',
'test-ard_tabulate_abnormal.R:5:1', 'test-ard_tabulate_abnormal.R:41:1',
'test-ard_tabulate_max.R:1:1', 'test-ard_tabulate_max.R:60:1',
'test-ard_tabulate_max.R:75:1', 'test-ard_tabulate_max.R:115:1',
'test-ard_tabulate_max.R:211:1', 'test-ard_tabulate_max.R:237:1',
'test-ard_tabulate_max.R:259:1',
'test-ard_tabulate_value.survey.design.R:736:1',
'test-ard_total_n.survey.design.R:3:1', 'test-construction_helpers.R:3:1',
'test-construction_helpers.R:103:1', 'test-proportion_ci.R:3:1',
'test-proportion_ci.R:122:1', 'test-ard_summary.survey.design.R:3:1',
'test-ard_summary.survey.design.R:318:1',
'test-ard_summary.survey.design.R:334:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-ard_stats_mantelhaen_test.R:13:3'): ard_stats_mantelhaen_test() works ──
Error in `structure(.)`: attempt to set an attribute on NULL
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-ard_stats_mantelhaen_test.R:13:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─cards::get_ard_statistics(...)
5. │ ├─stats::setNames(...)
6. │ └─base::lapply(...)
7. │ └─cards (local) FUN(X[[i]], ...)
8. │ └─ard_subset[[.column]][[i]] %>% ...
9. ├─rlang::inject(...)
10. └─base::structure(.)
[ FAIL 1 | WARN 0 | SKIP 66 | PASS 636 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [6s/8s] OK
- checking HTML version of manual ... [5s/8s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR