diff --git a/NEWS.md b/NEWS.md index fe06e0865..ad2375b70 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,6 +3,7 @@ ### Enhancements * Reduced the space of the filter panel by not displaying the "add filters" UI in a separate panel. +* The deprecated parameters `code` and `check` were removed from `init_filtered_data()`. ### Bug fixes diff --git a/R/FilteredData-utils.R b/R/FilteredData-utils.R index 6f2e272a3..69df4a96b 100644 --- a/R/FilteredData-utils.R +++ b/R/FilteredData-utils.R @@ -4,8 +4,6 @@ #' #' @param x (`named list`) of datasets. #' @param join_keys (`join_keys`) see [`teal.data::join_keys()`]. -#' @param code `r lifecycle::badge("deprecated")` -#' @param check `r lifecycle::badge("deprecated")` #' #' @return Object of class `FilteredData`. #' @@ -14,21 +12,9 @@ #' datasets #' #' @export -init_filtered_data <- function(x, join_keys = teal.data::join_keys(), code, check) { # nolint +init_filtered_data <- function(x, join_keys = teal.data::join_keys()) { # nolint checkmate::assert_list(x, any.missing = FALSE, names = "unique") checkmate::assert_class(join_keys, "join_keys") - if (!missing(code)) { - lifecycle::deprecate_stop( - "0.5.0", - "init_filtered_data(code = 'No longer supported')" - ) - } - if (!missing(check)) { - lifecycle::deprecate_stop( - "0.5.0", - "init_filtered_data(check = 'No longer supported')" - ) - } FilteredData$new(x, join_keys = join_keys) } diff --git a/man/init_filtered_data.Rd b/man/init_filtered_data.Rd index 6994400bf..d07fc8097 100644 --- a/man/init_filtered_data.Rd +++ b/man/init_filtered_data.Rd @@ -4,16 +4,12 @@ \alias{init_filtered_data} \title{Initialize \code{FilteredData}} \usage{ -init_filtered_data(x, join_keys = teal.data::join_keys(), code, check) +init_filtered_data(x, join_keys = teal.data::join_keys()) } \arguments{ \item{x}{(\verb{named list}) of datasets.} \item{join_keys}{(\code{join_keys}) see \code{\link[teal.data:join_keys]{teal.data::join_keys()}}.} - -\item{code}{\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}}} - -\item{check}{\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}}} } \value{ Object of class \code{FilteredData}.