* using log directory 'd:/RCompile/CRANincoming/R-devel/gtsummary.Rcheck' * using R Under development (unstable) (2025-04-11 r88138 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.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.2.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [20s] 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 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 ... [36s] 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 ... [120s] ERROR Running examples in 'gtsummary-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: proportion_summary > ### Title: Summarize a proportion > ### Aliases: proportion_summary > > ### ** Examples > > # Example 1 ---------------------------------- > Titanic |> + as.data.frame() |> + tbl_custom_summary( + include = c("Age", "Class"), + by = "Sex", + stat_fns = ~ proportion_summary("Survived", "Yes", weights = "Freq"), + statistic = ~ "{prop}% ({n}/{N}) [{conf.low}-{conf.high}]", + digits = ~ list( + prop = label_style_percent(digits = 1), + n = 0, + N = 0, + conf.low = label_style_percent(), + conf.high = label_style_percent() + ), + overall_row = TRUE, + overall_row_last = TRUE + ) |> + bold_labels() |> + modify_footnote_header("Proportion (%) of survivors (n/N) [95% CI]", columns = all_stat_cols()) The following errors were returned during `modify_footnote_header()`: ✖ For variable `.overall` (`Sex = "Male"`) and "complex" statistic: there is no package called 'broom' ✖ For variable `Age` (`Sex = "Male"`) and "complex" statistic: there is no package called 'broom' ✖ For variable `Age` (`Sex = "Male"`) and "complex" statistic: there is no package called 'broom' ✖ For variable `Class` (`Sex = "Male"`) and "complex" statistic: there is no package called 'broom' ✖ For variable `Class` (`Sex = "Male"`) and "complex" statistic: there is no package called 'broom' ✖ For variable `Class` (`Sex = "Male"`) and "complex" statistic: there is no package called 'broom' ✖ For variable `Class` (`Sex = "Male"`) and "complex" statistic: there is no package called 'broom' ✖ For variable `.overall` (`Sex = "Female"`) and "complex" statistic: there is no package called 'broom' ✖ For variable `Age` (`Sex = "Female"`) and "complex" statistic: there is no package called 'broom' ✖ For variable `Age` (`Sex = "Female"`) and "complex" statistic: there is no package called 'broom' ✖ For variable `Class` (`Sex = "Female"`) and "complex" statistic: there is no package called 'broom' ✖ For variable `Class` (`Sex = "Female"`) and "complex" statistic: there is no package called 'broom' ✖ For variable `Class` (`Sex = "Female"`) and "complex" statistic: there is no package called 'broom' ✖ For variable `Class` (`Sex = "Female"`) and "complex" statistic: there is no package called 'broom' Error in `modify_footnote_header()`: ! Statistic "prop", "n", "N", "conf.low", and "conf.high" is not available for variable "Age". ℹ Select among "N_obs", "N_miss", "N_nonmiss", "p_miss", "p_nonmiss", and "complex". Backtrace: ▆ 1. ├─gtsummary::modify_footnote_header(...) 2. ├─gtsummary::bold_labels(...) 3. └─gtsummary::tbl_custom_summary(...) 4. └─gtsummary:::.check_stats_available(cards = cards, statistic = statistic) 5. └─gtsummary:::imap(...) 6. └─gtsummary:::map2(.x, names(.x) %||% seq_along(.x), .f, ...) 7. └─base::mapply(.f, .x, .y, MoreArgs = list(...), SIMPLIFY = FALSE) 8. └─gtsummary (local) ``(dots[[1L]][[1L]], dots[[2L]][[1L]]) 9. └─cli::cli_abort(...) 10. └─rlang::abort(...) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [33s] ERROR Running 'spelling.R' Running 'testthat.R' [33s] 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", stop_on_warning = TRUE) Starting 2 test processes [ FAIL 1 | WARN 0 | SKIP 99 | PASS 47 ] ══ Skipped tests (99) ══════════════════════════════════════════════════════════ • On CRAN (98): 'test-add_ci.tbl_summary.R:1:1', 'test-add_ci.tbl_svysummary.R:1:1', 'test-add_difference.tbl_summary.R:1:1', 'test-add_difference.tbl_svysummary.R:1:1', 'test-add_glance.R:1:1', 'test-add_global_p.tbl_regression.R:1:1', 'test-add_n.tbl_regression.R:1:1', 'test-add_global_p.tbl_uvregression.R:1:1', 'test-add_n.tbl_summary.R:1:1', 'test-add_n.tbl_survfit.R:1:1', 'test-add_n.tbl_svysummary.R:1:1', 'test-add_n.tbl_uvregression.R:1:1', 'test-add_nevent.tbl_regression.R:1:1', 'test-add_nevent.tbl_survfit.R:1:1', 'test-add_nevent.tbl_uvregression.R:1:1', 'test-add_overall.tbl_ard_summary.R:1:1', 'test-add_overall.tbl_continuous.R:1:1', 'test-add_overall.tbl_custom_summary.R:1:1', 'test-add_overall.tbl_hierarchical.R:1:1', 'test-add_overall.tbl_summary.R:1:1', 'test-add_overall.tbl_svysummary.R:1:1', 'test-add_p.tbl_continuous.R:1:1', 'test-add_p.tbl_cross.R:1:1', 'test-add_p.tbl_survfit.R:1:1', 'test-add_p.tbl_summary.R:1:1', 'test-add_p.tbl_svysummary.R:1:1', 'test-add_q.R:1:1', 'test-add_stat.R:1:1', 'test-add_significance_stars.R:1:1', 'test-add_stat_label.R:1:1', 'test-add_stat_label.tbl_ard_summary.R:1:1', 'test-add_stat_label.tbl_svysummary.R:1:1', 'test-add_vif.R:1:1', 'test-as_flex_table.R:1:1', 'test-as_gt.R:1:1', 'test-as_hux_table.R:1:1', 'test-as_kable.R:1:1', 'test-as_kable_extra.R:1:1', 'test-as_tibble.R:1:1', 'test-bold_italicize_labels_levels.R:1:1', 'test-bold_p.R:1:1', 'test-combine_terms.R:1:1', 'test-custom_tidiers.R:1:1', 'test-filter_hierarchical.R:1:1', 'test-gather_ard.R:1:1', 'test-label_style.R:1:1', 'test-inline_text.R:1:1', 'test-modify_abbreviation.R:1:1', 'test-modify_bold_italic.R:1:1', 'test-modify_caption.R:1:1', 'test-modify_column_alignment.R:1:1', 'test-modify_column_hide.R:1:1', 'test-modify_column_indent.R:1:1', 'test-modify_column_merge.R:1:1', 'test-modify_fmt_fun.R:1:1', 'test-modify_footnote_body.R:1:1', 'test-modify_footnote.R:1:1', 'test-modify_footnote_header.R:1:1', 'test-modify_footnote_spanning_header.R:1:1', 'test-modify_header.R:1:1', 'test-modify_source_note.R:1:1', 'test-modify_spanning_header.R:1:1', 'test-modify_table_body.R:1:1', 'test-modify_table_styling.R:1:1', 'test-plot.tbl_regression.R:1:1', 'test-plot.tbl_uvregression.R:1:1', 'test-remove_row_type.R:1:1', 'test-scoping_gtsummary.R:1:1', 'test-select_helpers.R:1:1', 'test-separate_p_footnotes.R:1:1', 'test-show_header_names.R:1:1', 'test-sort_filter_p.R:1:1', 'test-sort_hierarchical.R:1:1', 'test-style_pvalue.R:49:3', 'test-tbl_ard_continuous.R:1:1', 'test-tbl_ard_hierarchical.R:1:1', 'test-tbl_ard_summary.R:1:1', 'test-tbl_ard_wide_summary.R:1:1', 'test-tbl_butcher.R:1:1', 'test-tbl_continuous.R:1:1', 'test-tbl_cross.R:1:1', 'test-tbl_custom_summary.R:1:1', 'test-tbl_hierarchical.R:1:1', 'test-tbl_likert.R:1:1', 'test-tbl_merge.R:1:1', 'test-tbl_regression.R:1:1', 'test-tbl_regression_methods.R:1:1', 'test-tbl_split.R:1:1', 'test-tbl_stack.R:1:1', 'test-tbl_strata.R:1:1', 'test-tbl_summary.R:1:1', 'test-tbl_survfit.R:1:1', 'test-tbl_svysummary.R:1:1', 'test-tbl_uvregression.R:1:1', 'test-tbl_wide_summary.R:1:1', 'test-theme_elements_gtsummary.R:1:1', 'test-theme_gtsummary.R:1:1', 'test-tbl_strata_nested_stack.R:127:3' • is_pkg_installed(c("cardx", "car", "broom", "broom.helpers", (1): 'test-add_variable_group_header.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-modify_missing_symbol.R:4:3'): modify_missing_symbol() ───────── Error in `loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])`: there is no package called 'haven' Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-modify_missing_symbol.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::unique(...) 5. ├─base::unlist(...) 6. ├─... %>% 2[c("estimate", "conf.low")] 7. ├─base::as.data.frame(...) 8. ├─gtsummary::modify_missing_symbol(...) 9. │ └─gtsummary:::check_class(x, "gtsummary") 10. ├─gtsummary::tbl_regression(lm(marker ~ trt, data = trial)) 11. ├─gtsummary:::tbl_regression.default(lm(marker ~ trt, data = trial)) 12. │ ├─dplyr::relocate(...) 13. │ └─gtsummary:::tidy_prep(...) 14. │ ├─... %>% ... 15. │ └─rlang::eval_tidy(...) 16. ├─broom.helpers::tidy_plus_plus(...) 17. │ ├─broom.helpers::tidy_add_contrasts(...) 18. │ │ └─broom.helpers::tidy_get_model(x) 19. │ └─broom.helpers::tidy_identify_variables(res, quiet = quiet) 20. │ ├─broom.helpers::model_identify_variables(model) 21. │ └─broom.helpers:::model_identify_variables.default(model) 22. │ ├─broom.helpers::model_list_variables(model, only_variable = TRUE) 23. │ └─broom.helpers:::model_list_variables.default(model, only_variable = TRUE) 24. │ ├─broom.helpers:::.compute_var_label(...) 25. │ ├─dplyr::mutate(...) 26. │ └─broom.helpers:::.add_label_attr(...) 27. │ └─base::unlist(labelled::var_label(model_get_model_frame(model))) 28. └─base::loadNamespace(x) 29. ├─base::namespaceImportFrom(...) 30. │ └─base::asNamespace(ns) 31. └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) 32. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 33. └─base (local) withOneRestart(expr, restarts[[1L]]) 34. └─base (local) doWithOneRestart(return(expr), restart) [ FAIL 1 | WARN 0 | SKIP 99 | PASS 47 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... ERROR Error(s) in re-building vignettes: --- re-building 'gtsummary_definition.Rmd' using rmarkdown Quitting from gtsummary_definition.Rmd:28-39 [setup] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `loadNamespace()`: ! there is no package called 'haven' --- Backtrace: ▆ 1. ├─gtsummary::bold_p(...) 2. ├─gtsummary::tbl_regression(lm(age ~ grade + marker, trial)) 3. ├─gtsummary:::tbl_regression.default(lm(age ~ grade + marker, trial)) 4. │ ├─dplyr::relocate(...) 5. │ └─gtsummary:::tidy_prep(...) 6. │ ├─... %>% ... 7. │ └─rlang::eval_tidy(...) 8. ├─broom.helpers::tidy_plus_plus(...) 9. │ ├─broom.helpers::tidy_add_contrasts(...) 10. │ │ └─broom.helpers::tidy_get_model(x) 11. │ └─broom.helpers::tidy_identify_variables(res, quiet = quiet) 12. │ ├─broom.helpers::model_identify_variables(model) 13. │ └─broom.helpers:::model_identify_variables.default(model) 14. │ ├─broom.helpers::model_list_variables(model, only_variable = TRUE) 15. │ └─broom.helpers:::model_list_variables.default(model, only_variable = TRUE) 16. │ ├─broom.helpers:::.compute_var_label(...) 17. │ ├─dplyr::mutate(...) 18. │ └─broom.helpers:::.add_label_attr(...) 19. │ └─base::unlist(labelled::var_label(model_get_model_frame(model))) 20. └─base::loadNamespace(x) 21. ├─base::namespaceImportFrom(...) 22. │ └─base::asNamespace(ns) 23. └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) 24. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 25. └─base (local) withOneRestart(expr, restarts[[1L]]) 26. └─base (local) doWithOneRestart(return(expr), restart) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'gtsummary_definition.Rmd' failed with diagnostics: there is no package called 'haven' --- failed re-building 'gtsummary_definition.Rmd' SUMMARY: processing the following file failed: 'gtsummary_definition.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [30s] OK * checking HTML version of manual ... [27s] OK * DONE Status: 3 ERRORs