* using log directory 'd:/RCompile/CRANincoming/R-devel/gtsummary.Rcheck' * using R Under development (unstable) (2024-07-20 r86909 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'gtsummary/DESCRIPTION' ... OK * this is package 'gtsummary' version '2.0.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [14s] Note_to_CRAN_maintainers Maintainer: 'Daniel D. Sjoberg ' * 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 'gtsummary' can be installed ... OK * checking installed package size ... OK * 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking whether startup messages can be suppressed ... 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 ... [19s] OK * checking Rd files ... 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking R/sysdata.rda ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [201s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [382s] ERROR Running 'testthat.R' [382s] Running the tests in 'tests/testthat.R' failed. Complete output: > # 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [13s] OK * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [18s] OK * DONE Status: 1 ERROR