From 3ca7f79b4a98c637ff85972cf1d0a27c41b6aa5b Mon Sep 17 00:00:00 2001 From: Daniel Sjoberg Date: Mon, 15 Apr 2024 14:40:27 -0700 Subject: [PATCH] Update ard_survival_survdiff.R --- R/ard_survival_survdiff.R | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/R/ard_survival_survdiff.R b/R/ard_survival_survdiff.R index fb3c11cf2..5bc11261f 100644 --- a/R/ard_survival_survdiff.R +++ b/R/ard_survival_survdiff.R @@ -85,8 +85,15 @@ ard_survival_survdiff <- function(formula, data, rho = 0, ...) { .add_survdiff_stat_labels() |> dplyr::mutate( context = "survival_survdiff", - warning = lst_glance[["warning"]], - error = lst_glance[["error"]] + warning = lst_glance["warning"], + error = lst_glance["error"], + fmt_fn = map( + .data$stat, + function(x) { + if (is.numeric(x)) return(1L) + NULL + } + ) ) |> cards::tidy_ard_column_order() %>% {structure(., class = c("card", class(.)))} # styler: off