R Under development (unstable) (2024-07-20 r86909 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(gtsummary) Attaching package: 'gtsummary' The following object is masked from 'package:testthat': matches > > test_check("gtsummary") Starting 2 test processes [ FAIL 11 | WARN 0 | SKIP 221 | PASS 808 ] ══ Skipped tests (221) ═════════════════════════════════════════════════════════ • On CRAN (220): 'test-add_ci.tbl_svysummary.R:570:3', 'test-add_ci.tbl_svysummary.R:588:3', 'test-add_ci.tbl_svysummary.R:603:3', 'test-add_ci.tbl_svysummary.R:649:3', 'test-add_ci.tbl_svysummary.R:666:3', 'test-add_ci.tbl_svysummary.R:690:3', 'test-add_ci.tbl_svysummary.R:721:3', 'test-add_ci.tbl_summary.R:535:3', 'test-add_ci.tbl_summary.R:549:3', 'test-add_ci.tbl_summary.R:723:3', 'test-add_ci.tbl_summary.R:740:3', 'test-add_ci.tbl_summary.R:764:3', 'test-add_ci.tbl_summary.R:795:3', 'test-add_difference.tbl_summary.R:18:3', 'test-add_difference.tbl_summary.R:173:3', 'test-add_difference.tbl_summary.R:396:3', 'test-add_difference.tbl_summary.R:517:3', 'test-add_difference.tbl_summary.R:539:3', 'test-add_difference.tbl_summary.R:565:3', 'test-add_difference.tbl_summary.R:581:3', 'test-add_difference.tbl_summary.R:605:3', 'test-add_difference.tbl_svysummary.R:7:3', 'test-add_difference.tbl_svysummary.R:23:3', 'test-add_difference.tbl_svysummary.R:137:3', 'test-add_difference.tbl_svysummary.R:149:3', 'test-add_global_p.tbl_regression.R:122:3', 'test-add_glance.R:80:3', 'test-add_n.tbl_summary.R:27:3', 'test-add_n.tbl_summary.R:36:3', 'test-add_n.tbl_svysummary.R:31:3', 'test-add_n.tbl_svysummary.R:40:3', 'test-add_global_p.tbl_uvregression.R:11:3', 'test-add_global_p.tbl_uvregression.R:181:3', 'test-add_overall.tbl_continuous.R:94:3', 'test-add_overall.tbl_summary.R:88:3', 'test-add_p.tbl_continuous.R:35:3', 'test-add_p.tbl_cross.R:24:3', 'test-add_overall.tbl_svysummary.R:92:3', 'test-add_p.tbl_survfit.R:10:3', 'test-add_p.tbl_survfit.R:41:3', 'test-add_p.tbl_svysummary.R:7:3', 'test-add_p.tbl_svysummary.R:23:3', 'test-add_p.tbl_svysummary.R:273:3', 'test-add_q.R:29:3', 'test-add_p.tbl_summary.R:4:3', 'test-add_p.tbl_summary.R:28:3', 'test-add_p.tbl_summary.R:69:3', 'test-add_p.tbl_summary.R:86:3', 'test-add_p.tbl_summary.R:109:3', 'test-add_p.tbl_summary.R:405:3', 'test-add_p.tbl_summary.R:447:3', 'test-add_significance_stars.R:19:3', 'test-add_significance_stars.R:42:3', 'test-add_stat.R:125:3', 'test-add_stat.R:166:3', 'test-add_stat_label.R:4:3', 'test-add_stat_label.R:15:3', 'test-add_stat_label.R:31:3', 'test-add_stat_label.R:45:3', 'test-add_stat_label.R:69:3', 'test-add_stat_label.R:91:3', 'test-add_vif.R:4:3', 'test-add_vif.R:20:3', 'test-add_vif.R:38:3', 'test-as_flex_table.R:1:1', 'test-as_gt.R:1:1', 'test-add_stat_label.tbl_svysummary.R:8:3', 'test-add_stat_label.tbl_svysummary.R:19:3', 'test-add_stat_label.tbl_svysummary.R:35:3', 'test-add_stat_label.tbl_svysummary.R:49:3', 'test-add_stat_label.tbl_svysummary.R:73:3', 'test-as_hux_table.R:47:3', 'test-as_hux_table.R:69:3', 'test-as_kable.R:21:3', 'test-as_kable.R:112:3', 'test-as_kable.R:119:3', 'test-as_kable.R:129:3', 'test-as_kable.R:146:3', 'test-as_kable.R:168:3', 'test-as_kable_extra.R:38:3', 'test-as_kable_extra.R:101:3', 'test-as_kable_extra.R:124:3', 'test-as_kable_extra.R:175:3', 'test-as_kable_extra.R:207:3', 'test-as_kable_extra.R:220:3', 'test-as_tibble.R:24:3', 'test-bold_p.R:26:3', 'test-custom_tidiers.R:6:3', 'test-custom_tidiers.R:16:3', 'test-custom_tidiers.R:25:3', 'test-custom_tidiers.R:34:3', 'test-inline_text.R:100:3', 'test-inline_text.R:140:3', 'test-inline_text.R:203:3', 'test-inline_text.R:260:3', 'test-inline_text.R:353:3', 'test-combine_terms.R:170:3', 'test-modify_column_hide.R:2:3', 'test-modify_column_merge.R:25:3', 'test-modify_header.R:133:3', 'test-modify_footnote.R:124:3', 'test-modify_table_body.R:2:3', 'test-modify_table_body.R:15:3', 'test-modify_spanning_header.R:110:3', 'test-modify_table_styling.R:349:3', 'test-modify_table_styling.R:373:3', 'test-modify_table_styling.R:386:3', 'test-remove_row_type.R:42:3', 'test-separate_p_footnotes.R:12:3', 'test-separate_p_footnotes.R:34:3', 'test-style_pvalue.R:49:3', 'test-tbl_ard_continuous.R:3:3', 'test-tbl_ard_continuous.R:25:3', 'test-tbl_ard_continuous.R:45:3', 'test-sort_filter_p.R:29:3', 'test-sort_filter_p.R:38:3', 'test-tbl_ard_wide_summary.R:3:3', 'test-tbl_ard_wide_summary.R:18:3', 'test-tbl_ard_wide_summary.R:28:3', 'test-tbl_ard_summary.R:3:3', 'test-tbl_ard_summary.R:51:3', 'test-tbl_ard_summary.R:65:3', 'test-tbl_ard_summary.R:92:3', 'test-tbl_ard_summary.R:125:3', 'test-tbl_ard_summary.R:145:3', 'test-tbl_ard_summary.R:171:3', 'test-tbl_continuous.R:6:3', 'test-tbl_continuous.R:22:3', 'test-tbl_continuous.R:122:3', 'test-tbl_continuous.R:135:3', 'test-tbl_continuous.R:154:3', 'test-tbl_continuous.R:166:3', 'test-tbl_continuous.R:190:3', 'test-tbl_custom_summary.R:22:3', 'test-tbl_custom_summary.R:167:3', 'test-tbl_custom_summary.R:176:3', 'test-tbl_custom_summary.R:255:3', 'test-tbl_custom_summary.R:295:3', 'test-tbl_cross.R:8:3', 'test-tbl_cross.R:13:3', 'test-tbl_cross.R:21:3', 'test-tbl_cross.R:26:3', 'test-tbl_cross.R:47:3', 'test-tbl_cross.R:86:3', 'test-tbl_cross.R:90:3', 'test-tbl_cross.R:107:3', 'test-tbl_merge.R:161:3', 'test-tbl_merge.R:179:3', 'test-tbl_regression.R:12:3', 'test-tbl_regression.R:43:3', 'test-tbl_regression.R:78:3', 'test-tbl_regression.R:82:3', 'test-tbl_regression.R:130:3', 'test-tbl_regression.R:138:3', 'test-tbl_stack.R:1:1', 'test-tbl_regression_methods.R:7:3', 'test-tbl_regression_methods.R:20:3', 'test-tbl_regression_methods.R:33:3', 'test-tbl_regression_methods.R:44:3', 'test-tbl_regression_methods.R:64:3', 'test-tbl_regression_methods.R:75:3', 'test-tbl_regression_methods.R:86:3', 'test-tbl_regression_methods.R:98:3', 'test-tbl_regression_methods.R:114:3', 'test-tbl_summary.R:4:3', 'test-tbl_summary.R:11:3', 'test-tbl_summary.R:18:3', 'test-tbl_summary.R:25:3', 'test-tbl_summary.R:39:3', 'test-tbl_summary.R:50:3', 'test-tbl_summary.R:113:3', 'test-tbl_summary.R:134:3', 'test-tbl_summary.R:225:3', 'test-tbl_summary.R:336:3', 'test-tbl_summary.R:374:3', 'test-tbl_summary.R:402:3', 'test-tbl_summary.R:453:3', 'test-tbl_summary.R:464:3', 'test-tbl_summary.R:521:3', 'test-tbl_summary.R:544:3', 'test-tbl_summary.R:556:3', 'test-tbl_svysummary.R:12:3', 'test-tbl_svysummary.R:19:3', 'test-tbl_svysummary.R:26:3', 'test-tbl_svysummary.R:32:3', 'test-tbl_svysummary.R:45:3', 'test-tbl_svysummary.R:56:3', 'test-tbl_svysummary.R:115:3', 'test-tbl_svysummary.R:136:3', 'test-tbl_svysummary.R:227:3', 'test-tbl_svysummary.R:347:3', 'test-tbl_svysummary.R:386:3', 'test-tbl_svysummary.R:415:3', 'test-tbl_svysummary.R:466:3', 'test-tbl_svysummary.R:477:3', 'test-tbl_svysummary.R:534:3', 'test-tbl_svysummary.R:557:3', 'test-tbl_svysummary.R:569:3', 'test-tbl_wide_summary.R:3:3', 'test-tbl_wide_summary.R:44:3', 'test-theme_gtsummary.R:37:3', 'test-theme_gtsummary.R:117:3', 'test-theme_gtsummary.R:159:3', 'test-theme_gtsummary.R:201:3', 'test-theme_gtsummary.R:257:3', 'test-theme_gtsummary.R:268:3', 'test-theme_gtsummary.R:282:3', 'test-tbl_uvregression.R:14:3', 'test-tbl_uvregression.R:52:3', 'test-tbl_uvregression.R:104:3', 'test-tbl_uvregression.R:183:3', 'test-tbl_uvregression.R:203:3', 'test-tbl_uvregression.R:261:3', 'test-tbl_uvregression.R:274:3', 'test-tbl_uvregression.R:321:3', 'test-tbl_uvregression.R:336:3', 'test-tbl_uvregression.R:351:3', 'test-tbl_uvregression.R:372:3', 'test-tbl_uvregression.R:420:3', 'test-tbl_uvregression.R:444:3' • On Windows (1): 'test-show_header_names.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-tbl_summary.R:177:3'): tbl_summary(digit) ──────────────────── dplyr::pull(dplyr::filter(tbl, variable == "age"), stat_0) (`actual`) not equal to "47.0000 (38.00, 57)" (`expected`). `actual`: "47.0000 (38.00 – 57)" `expected`: "47.0000 (38.00, 57)" ── Failure ('test-tbl_summary.R:184:3'): tbl_summary(digit) ──────────────────── dplyr::pull(dplyr::filter(tbl, variable == "response"), stat_0) (`actual`) not equal to "61 (31.606%)" (`expected`). `actual`: "61 (31.606)" `expected`: "61 (31.606%)" ── Failure ('test-tbl_summary.R:191:3'): tbl_summary(digit) ──────────────────── dplyr::pull(dplyr::filter(tbl, variable == "marker"), stat_0) (`actual`) not equal to "1 (0, 1)" (`expected`). `actual`: "1 (0 – 1)" `expected`: "1 (0, 1)" ── Failure ('test-tbl_summary.R:198:3'): tbl_summary(digit) ──────────────────── dplyr::pull(dplyr::filter(tbl, variable == "ttdeath"), stat_0) (`actual`) not equal to "22.41 (15.92, 24.00)" (`expected`). `actual`: "22.41 (15.92 – 24.00)" `expected`: "22.41 (15.92, 24.00)" ── Failure ('test-tbl_summary.R:425:3'): tbl_summary(missing) ────────────────── tbl[, 1] (`actual`) not equal to c("Chemotherapy Treatment", "Drug A", "Drug B", "Age", "Unknown") (`expected`). actual | expected [1] "Chemotherapy Treatment, n (%)" - "Chemotherapy Treatment" [1] [2] "Drug A" | "Drug A" [2] [3] "Drug B" | "Drug B" [3] [4] "Age, Median (IQR)" - "Age" [4] [5] "Unknown" | "Unknown" [5] ── Failure ('test-tbl_svysummary.R:179:3'): tbl_svysummary(digit) ────────────── dplyr::pull(dplyr::filter(tbl, variable == "age"), stat_0) (`actual`) not equal to "47.0000 (38.00, 57)" (`expected`). `actual`: "47.0000 (38.00 – 57)" `expected`: "47.0000 (38.00, 57)" ── Failure ('test-tbl_svysummary.R:186:3'): tbl_svysummary(digit) ────────────── dplyr::pull(dplyr::filter(tbl, variable == "response"), stat_0) (`actual`) not equal to "61 (31.606%)" (`expected`). `actual`: "61 (31.606)" `expected`: "61 (31.606%)" ── Failure ('test-tbl_svysummary.R:193:3'): tbl_svysummary(digit) ────────────── dplyr::pull(dplyr::filter(tbl, variable == "marker"), stat_0) (`actual`) not equal to "1 (0, 1)" (`expected`). `actual`: "1 (0 – 1)" `expected`: "1 (0, 1)" ── Failure ('test-tbl_svysummary.R:200:3'): tbl_svysummary(digit) ────────────── dplyr::pull(dplyr::filter(tbl, variable == "ttdeath"), stat_0) (`actual`) not equal to "22.40 (15.77, 24.00)" (`expected`). `actual`: "22.40 (15.77 – 24.00)" `expected`: "22.40 (15.77, 24.00)" ── Failure ('test-tbl_uvregression.R:119:3'): tbl_uvregression(exponentiate) ─── dplyr::pull(...) (`actual`) not equal to "**OR**" (`expected`). `actual`: "**OR** **(95% CI)**" `expected`: "**OR**" ── Failure ('test-tbl_uvregression.R:304:3'): tbl_uvregression(add_estimate_to_reference_rows) ── dplyr::pull(...) (`actual`) not equal to c(NA, "1.00", "1.21") (`expected`). `actual`: NA "1.00" "1.21 (0.66 to 2.24)" `expected`: NA "1.00" "1.21" [ FAIL 11 | WARN 0 | SKIP 221 | PASS 808 ] Error: Test failures Execution halted