Last updated on 2025-07-04 00:50:32 CEST.
Package | ERROR | OK |
---|---|---|
cards | 13 | |
cardx | 13 | |
crane | 13 | |
dcurves | 13 | |
ggsurvfit | 13 | |
gtsummary | 1 | 12 |
rstudio.prefs | 13 | |
starter | 13 | |
tidycmprsk | 13 | |
updater | 13 |
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: ERROR: 1, OK: 12
Version: 2.2.0
Check: examples
Result: ERROR
Running examples in ‘gtsummary-Ex.R’ failed
The error most likely occurred in:
> ### Name: add_nevent.tbl_survfit
> ### Title: Add event N
> ### Aliases: add_nevent.tbl_survfit
>
> ### ** Examples
>
> ## Don't show:
> if (gtsummary:::is_pkg_installed(c("survival", "broom"))) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
+ ## End(Don't show)
+ library(survival)
+ fit1 <- survfit(Surv(ttdeath, death) ~ 1, trial)
+ fit2 <- survfit(Surv(ttdeath, death) ~ trt, trial)
+
+ # Example 1 ----------------------------------
+ list(fit1, fit2) |>
+ tbl_survfit(times = c(12, 24)) |>
+ add_n() |>
+ add_nevent()
+ ## Don't show:
+ }) # examplesIf
> library(survival)
> fit1 <- survfit(Surv(ttdeath, death) ~ 1, trial)
> fit2 <- survfit(Surv(ttdeath, death) ~ trt, trial)
> add_nevent(add_n(tbl_survfit(list(fit1, fit2), times = c(12, 24))))
Error in `dplyr::mutate()`:
ℹ In argument: `fmt_fn = pmap(...)`.
Caused by error in `.data$fmt_fn`:
! Column `fmt_fn` not found in `.data`.
Backtrace:
▆
1. ├─(if (getRversion() >= "3.4") withAutoprint else force)(...)
2. │ └─base::source(...)
3. │ ├─base::withVisible(eval(ei, envir))
4. │ └─base::eval(ei, envir)
5. │ └─base::eval(ei, envir)
6. ├─gtsummary::add_nevent(...)
7. │ └─gtsummary:::check_class(x, "gtsummary")
8. ├─gtsummary::add_n(...)
9. │ └─gtsummary:::check_class(x, "gtsummary")
10. ├─gtsummary::tbl_survfit(list(fit1, fit2), times = c(12, 24))
11. ├─gtsummary:::tbl_survfit.list(...)
12. │ └─base::lapply(...)
13. │ └─gtsummary (local) FUN(X[[i]], ...)
14. │ ├─dplyr::mutate(...)
15. │ └─dplyr:::mutate.data.frame(...)
16. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
17. │ ├─base::withCallingHandlers(...)
18. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
19. │ └─mask$eval_all_mutate(quo)
20. │ └─dplyr (local) eval()
21. ├─gtsummary:::pmap(...)
22. │ └─gtsummary:::.rlang_purrr_args_recycle(.l)
23. │ └─gtsummary:::map_int(args, length)
24. │ └─gtsummary:::.rlang_purrr_map_mold(.x, .f, integer(1), ...)
25. │ └─base::vapply(.x, .f, .mold, ..., USE.NAMES = FALSE)
26. ├─fmt_fn
27. ├─rlang:::`$.rlang_data_pronoun`(.data, fmt_fn)
28. │ └─rlang:::data_pronoun_get(...)
29. └─rlang:::abort_data_pronoun(x, call = y)
30. └─rlang::abort(msg, "rlang_error_data_pronoun_not_found", call = call)
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 2.2.0
Check: tests
Result: ERROR
Running ‘spelling.R’
Running ‘testthat.R’ [80s/140s]
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 0 | WARN 15 | SKIP 100 | PASS 47 ]
══ Skipped tests (100) ═════════════════════════════════════════════════════════
• On CRAN (100): 'test-add_ci.tbl_svysummary.R:1:1',
'test-add_ci.tbl_summary.R:1:1', 'test-add_difference.tbl_svysummary.R:1:1',
'test-add_difference.tbl_summary.R:1:1',
'test-add_global_p.tbl_regression.R:1:1', 'test-add_glance.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_summary.R:1:1',
'test-add_p.tbl_survfit.R:1:1', 'test-add_q.R:1:1',
'test-add_p.tbl_svysummary.R:1:1', 'test-add_significance_stars.R:1:1',
'test-add_stat.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_variable_group_header.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_tibble.R:1:1', 'test-as_kable_extra.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-inline_text.R:1:1', 'test-label_style.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_fmt_fun.R:1:1', 'test-modify_column_merge.R:1:1',
'test-modify_footnote.R:1:1', 'test-modify_footnote_body.R:1:1',
'test-modify_footnote_header.R:1:1', 'test-modify_header.R:1:1',
'test-modify_missing_symbol.R:1:1',
'test-modify_footnote_spanning_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'
[ FAIL 0 | WARN 15 | SKIP 100 | PASS 47 ]
Error: Tests generated warnings
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13