Skip to content

Commit

Permalink
Removed add_overall.tbl_ard_summary(digits) argument (ddsjoberg#1980)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsjoberg authored Sep 17, 2024
1 parent 00c5775 commit 0f9bff5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: gtsummary
Title: Presentation-Ready Data Summary and Analytic Result Tables
Version: 2.0.2.9003
Version: 2.0.2.9005
Authors@R: c(
person("Daniel D.", "Sjoberg", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-0862-2018")),
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

* Added `add_stat_label.tbl_ard_summary()` method. (#1969)

* Removed documentation for the `add_overall.tbl_ard_summary(digits)` argument, which was never meant to be a part of this function. (#1975)

# gtsummary 2.0.2

Updates to address regressions in the v2.0.0 release:
Expand Down
8 changes: 2 additions & 6 deletions R/add_overall_ard.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
#' @param statistic ([`formula-list-selector`][syntax])\cr
#' Override the statistic argument in initial `tbl_*` function
#' call. Default is `NULL`.
#' @param digits ([`formula-list-selector`][syntax])\cr
#' Override the digits argument in initial `tbl_*` function
#' call. Default is `NULL`.
#' @inheritParams rlang::args_dots_empty
#'
#' @author Daniel D. Sjoberg
Expand Down Expand Up @@ -60,8 +57,7 @@ add_overall.tbl_ard_summary <- function(x,
cards,
last = FALSE,
col_label = "**Overall**",
statistic = NULL,
digits = NULL, ...) {
statistic = NULL, ...) {
set_cli_abort_call()
check_dots_empty()
check_not_missing(cards)
Expand All @@ -80,7 +76,7 @@ add_overall.tbl_ard_summary <- function(x,
last = last,
col_label = col_label,
statistic = statistic,
digits = digits,
digits = NULL,
call = c(x$call_list, list(add_overall = match.call())),
calling_fun = names(x$call_list)[1]
)
Expand Down
5 changes: 0 additions & 5 deletions man/add_overall_ard.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0f9bff5

Please sign in to comment.