R/deprecated.R

Defines functions tbl_split.gtsummary tbl_split modify_column_indent

Documented in modify_column_indent tbl_split tbl_split.gtsummary

#' Deprecated functions
#'
#' `r lifecycle::badge('deprecated')`\cr
#' Some functions have been deprecated and are no longer being actively
#' supported.
#'
#' @name deprecated
#' @keywords internal
NULL

# "soft" deprecation for 6 months: (Sys.Date() - lubridate::dmonths(6)) |> as.Date()
#   v2.6.1 2026-09-04
#   v2.6.0 2026-08-25

# "warn" deprecation for 18 months: (Sys.Date() - lubridate::dmonths(24)) |> as.Date()
#   v2.5.1 2026-05-30
#   v2.5.0 2025-12-05
#   v2.4.0 2025-08-28
#   v2.3.0 2025-07-03
#   v2.2.0 2025-04-11
#   v2.1.0 2025-02-19

# "stop" deprecation for 12 months: (Sys.Date() - lubridate::dmonths(36)) |> as.Date()
#   v2.0.2 2024-09-05
#   v2.0.1 2024-08-01
#   v2.0.0 2024-07-23

# v2.3.0 -----------------------------------------------------------------------
#' @rdname deprecated
#' @export
modify_column_indent <- function(...) {
  lifecycle::deprecate_warn("2.3.0", "gtsummary::modify_column_indent()", "modify_indent()")
  modify_indent(...)
}

# v2.3.0 -----------------------------------------------------------------------
#' @rdname deprecated
#' @export
tbl_split <- function(x, ...) {
  UseMethod("tbl_split")
}

# v2.3.0 -----------------------------------------------------------------------
#' @rdname deprecated
#' @export
tbl_split.gtsummary <- function(...) {
  lifecycle::deprecate_warn("2.3.0", "gtsummary::tbl_split.gtsummary()", "tbl_split_by_rows()")
  tbl_split_by_rows(...)
}

Try the gtsummary package in your browser

Any scripts or data that you put into this service are public.

gtsummary documentation built on Nov. 28, 2026, 9:07 a.m.