Running ‘testthat.R’ [226s/148s]
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_anova-98.R
  Saving _problems/test-ard_stats_anova-114.R
  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 3 | WARN 0 | SKIP 66 | PASS 634 ]
  
  ══ 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_effectsize_cohens_d.R:3:1',
    'test-ard_continuous_ci.survey.design.R:6:1',
    'test-ard_continuous_ci.survey.design.R:193:1',
    'test-ard_effectsize_hedges_g.R:3:1', 'test-ard_emmeans_contrast.R:3:1',
    'test-ard_emmeans_contrast.R:100: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_emmeans.R:3:1', 'test-ard_emmeans_emmeans.R:93:1',
    'test-ard_proportion_ci.R:62:1', 'test-ard_proportion_ci.R:112:1',
    'test-ard_regression_basic.R:3:1', 'test-ard_stats_aov.R:3:1',
    'test-ard_regression.R:3:1', 'test-ard_regression.R:40: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 ════════════════════════════════════════════════════════════════
  ── Failure ('test-ard_stats_anova.R:84:3'): ard_stats_anova.data.frame() works ──
  Expected `unlist(...)` to equal `keep(...)`.
  Differences:
  `actual` is NULL
  `expected` is a double vector (0.000184820142235578)
  
  ── Failure ('test-ard_stats_anova.R:111:3'): ard_stats_anova.data.frame() works ──
  Expected `ard_anova_glmer2` to equal `ard_anova_glmer`.
  Differences:
    `attr(actual, 'row.names')`: 1 2 3 4 5 6 7 8 9 10 and 6 more...
  `attr(expected, 'row.names')`: 1 2                            ...
  
       actual$variable | expected$variable               
   [1] "model_1"       | "model_1"         [1]           
   [2] "model_1"       | "model_1"         [2]           
   [3] "model_1"       -                                 
   [4] "model_1"       -                                 
   [5] "model_1"       -                                 
   [6] "model_1"       -                                 
   [7] "model_2"       -                                 
   [8] "model_2"       -                                 
   [9] "model_2"       -                                 
  [10] "model_2"       -                                 
   ... ...               ...               and 6 more ...
  
       actual$context | expected$context               
   [1] "stats_anova"  | "stats_anova"    [1]           
   [2] "stats_anova"  | "stats_anova"    [2]           
   [3] "stats_anova"  -                                
   [4] "stats_anova"  -                                
   [5] "stats_anova"  -                                
   [6] "stats_anova"  -                                
   [7] "stats_anova"  -                                
   [8] "stats_anova"  -                                
   [9] "stats_anova"  -                                
  [10] "stats_anova"  -                                
   ... ...              ...              and 6 more ...
  
       actual$stat_name | expected$stat_name               
   [1] "term"           -                                  
   [2] "npar"           -                                  
   [3] "AIC"            -                                  
   [4] "BIC"            -                                  
   [5] "logLik"         -                                  
   [6] "minus2logL"     -                                  
   [7] "term"           -                                  
   [8] "npar"           -                                  
   [9] "AIC"            -                                  
  [10] "BIC"            -                                  
   ... ...                ...                and 6 more ...
  
       actual$stat_label | expected$stat_label               
   [1] "term"            -                                   
   [2] "npar"            -                                   
   [3] "AIC"             -                                   
   [4] "BIC"             -                                   
   [5] "logLik"          -                                   
   [6] "minus2logL"      -                                   
   [7] "term"            -                                   
   [8] "npar"            -                                   
   [9] "AIC"             -                                   
  [10] "BIC"             -                                   
   ... ...                 ...                 and 6 more ...
  
  `actual$stat` is length 16
  `expected$stat` is length 2
  
  `actual$stat[[1]]` is a character vector ('MODEL1')
  `expected$stat[[1]]` is NULL
  
  `actual$stat[[2]]` is a double vector (2)
  `expected$stat[[2]]` is a character vector ('ANOVA results from `stats::anova()`')
  
  `actual$stat[[3]]` is a double vector (47.2297332768578)
  `expected$stat[[3]]` is absent
  
  `actual$stat[[4]]` is a double vector (50.1612050824573)
  `expected$stat[[4]]` is absent
  
  `actual$stat[[5]]` is a double vector (-21.6148666384289)
  `expected$stat[[5]]` is absent
  
  `actual$stat[[6]]` is a double vector (43.2297332768578)
  `expected$stat[[6]]` is absent
  
  `actual$stat[[7]]` is a character vector ('MODEL2')
  `expected$stat[[7]]` is absent
  
  `actual$stat[[8]]` is a double vector (3)
  `expected$stat[[8]]` is absent
  
  `actual$stat[[9]]` is a double vector (35.2502880152486)
  `expected$stat[[9]]` is absent
  
  `actual$stat[[10]]` is a double vector (39.6474957236477)
  `expected$stat[[10]]` is absent
  
  `actual$stat[[11]]` is a double vector (-14.6251440076243)
  `expected$stat[[11]]` is absent
  
  `actual$stat[[12]]` is a double vector (29.2502880152486)
  `expected$stat[[12]]` is absent
  
  `actual$stat[[13]]` is a double vector (13.9794452616092)
  `expected$stat[[13]]` is absent
  
  `actual$stat[[14]]` is a double vector (1)
  `expected$stat[[14]]` is absent
  
  `actual$stat[[15]]` is a double vector (0.000184820142235578)
  `expected$stat[[15]]` is absent
  
  `actual$stat[[16]]` is a character vector ('ANOVA results from `stats::anova()`')
  `expected$stat[[16]]` is absent
  
  `actual$fmt_fun` is length 16
  `expected$fmt_fun` is length 2
  
  `actual$fmt_fun[[2]]` is an integer vector (1)
  `expected$fmt_fun[[2]]` is NULL
  
  `actual$fmt_fun[[3]]` is an integer vector (1)
  `expected$fmt_fun[[3]]` is absent
  
  `actual$fmt_fun[[4]]` is an integer vector (1)
  `expected$fmt_fun[[4]]` is absent
  
  `actual$fmt_fun[[5]]` is an integer vector (1)
  `expected$fmt_fun[[5]]` is absent
  
  `actual$fmt_fun[[6]]` is an integer vector (1)
  `expected$fmt_fun[[6]]` is absent
  
  `actual$fmt_fun[[7]]` is NULL
  `expected$fmt_fun[[7]]` is absent
  
  `actual$fmt_fun[[8]]` is an integer vector (1)
  `expected$fmt_fun[[8]]` is absent
  
  `actual$fmt_fun[[9]]` is an integer vector (1)
  `expected$fmt_fun[[9]]` is absent
  
  `actual$fmt_fun[[10]]` is an integer vector (1)
  `expected$fmt_fun[[10]]` is absent
  
  `actual$fmt_fun[[11]]` is an integer vector (1)
  `expected$fmt_fun[[11]]` is absent
  
  `actual$fmt_fun[[12]]` is an integer vector (1)
  `expected$fmt_fun[[12]]` is absent
  
  `actual$fmt_fun[[13]]` is an integer vector (1)
  `expected$fmt_fun[[13]]` is absent
  
  `actual$fmt_fun[[14]]` is an integer vector (1)
  `expected$fmt_fun[[14]]` is absent
  
  `actual$fmt_fun[[15]]` is an integer vector (1)
  `expected$fmt_fun[[15]]` is absent
  
  `actual$fmt_fun[[16]]` is NULL
  `expected$fmt_fun[[16]]` is absent
  
  `actual$warning` is length 16
  `expected$warning` is length 2
  
       names(actual$warning) | names(expected$warning)               
   [1] "warning"             | "warning"               [1]           
   [2] "warning"             | "warning"               [2]           
   [3] "warning"             -                                       
   [4] "warning"             -                                       
   [5] "warning"             -                                       
   [6] "warning"             -                                       
   [7] "warning"             -                                       
   [8] "warning"             -                                       
   [9] "warning"             -                                       
  [10] "warning"             -                                       
   ... ...                     ...                     and 6 more ...
  
  `actual$warning[[1]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[1]]` is NULL
  
  `actual$warning[[2]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[2]]` is NULL
  
  `actual$warning[[3]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[3]]` is absent
  
  `actual$warning[[4]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[4]]` is absent
  
  `actual$warning[[5]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[5]]` is absent
  
  `actual$warning[[6]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[6]]` is absent
  
  `actual$warning[[7]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[7]]` is absent
  
  `actual$warning[[8]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[8]]` is absent
  
  `actual$warning[[9]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[9]]` is absent
  
  `actual$warning[[10]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[10]]` is absent
  
  `actual$warning[[11]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[11]]` is absent
  
  `actual$warning[[12]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[12]]` is absent
  
  `actual$warning[[13]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[13]]` is absent
  
  `actual$warning[[14]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[14]]` is absent
  
  `actual$warning[[15]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[15]]` is absent
  
  `actual$warning[[16]]` is a character vector ('failed to find model names, assigning generic names')
  `expected$warning[[16]]` is absent
  
  `actual$error` is length 16
  `expected$error` is length 2
  
       names(actual$error) | names(expected$error)               
   [1] "error"             | "error"               [1]           
   [2] "error"             | "error"               [2]           
   [3] "error"             -                                     
   [4] "error"             -                                     
   [5] "error"             -                                     
   [6] "error"             -                                     
   [7] "error"             -                                     
   [8] "error"             -                                     
   [9] "error"             -                                     
  [10] "error"             -                                     
   ... ...                   ...                   and 6 more ...
  
  `actual$error[[1]]` is NULL
  `expected$error[[1]]` is a character vector ('There was an error evaluating the model `glmer(formula = am ~ mpg + (1 | vs), data = ., family = binomial)`\nCaused by error:\n! Downdated VtV is not positive definite')
  
  `actual$error[[2]]` is NULL
  `expected$error[[2]]` is a character vector ('There was an error evaluating the model `glmer(formula = am ~ mpg + (1 | vs), data = ., family = binomial)`\nCaused by error:\n! Downdated VtV is not positive definite')
  
  `actual$error[[3]]` is NULL
  `expected$error[[3]]` is absent
  
  `actual$error[[4]]` is NULL
  `expected$error[[4]]` is absent
  
  `actual$error[[5]]` is NULL
  `expected$error[[5]]` is absent
  
  `actual$error[[6]]` is NULL
  `expected$error[[6]]` is absent
  
  `actual$error[[7]]` is NULL
  `expected$error[[7]]` is absent
  
  `actual$error[[8]]` is NULL
  `expected$error[[8]]` is absent
  
  `actual$error[[9]]` is NULL
  `expected$error[[9]]` is absent
  
  `actual$error[[10]]` is NULL
  `expected$error[[10]]` is absent
  
  `actual$error[[11]]` is NULL
  `expected$error[[11]]` is absent
  
  `actual$error[[12]]` is NULL
  `expected$error[[12]]` is absent
  
  `actual$error[[13]]` is NULL
  `expected$error[[13]]` is absent
  
  `actual$error[[14]]` is NULL
  `expected$error[[14]]` is absent
  
  `actual$error[[15]]` is NULL
  `expected$error[[15]]` is absent
  
  `actual$error[[16]]` is NULL
  `expected$error[[16]]` is absent
  
  ── 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 3 | WARN 0 | SKIP 66 | PASS 634 ]
  Error:
  ! Test failures.
  Execution halted