Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove deprecated #495

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 1 addition & 86 deletions R/FilteredData.R
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,7 @@ FilteredData <- R6::R6Class( # nolint
#' @description
#' Sets active filter states.
#'
#' @param state either a `named list` list of filter selections
#' or a `teal_slices` object\cr
#' specification by list will be deprecated soon
#' @param state (`teal_slices`) object
#'
#' @return `NULL` invisibly
#'
Expand Down Expand Up @@ -856,89 +854,6 @@ FilteredData <- R6::R6Class( # nolint
NULL
}
)
},

# deprecated - to remove after release --------------------------------------

#' @description
#' Method is deprecated. Provide resolved `active_datanames` to `srv_filter_panel`
#'
#' @param datanames `character vector` `datanames` to pick
#'
#' @return the intersection of `self$datanames()` and `datanames`
#'
handle_active_datanames = function(datanames) {
stop("Deprecated with teal.slice 0.4.0")
},

#' @description
#' Method is deprecated. Please extract column labels directly from the data.
#'
#' @param dataname (`character(1)`) name of the dataset
#' @param variables (`character`) variables to get labels for;
#' if `NULL`, for all variables in data
#'
get_varlabels = function(dataname, variables = NULL) {
stop("Deprecated with 0.4.0 - please extract column labels directly from the data.")
},

#' @description
#' Method is deprecated, Please extract variable names directly from the data instead
#'
#' @param dataname (`character`) the name of the dataset
#'
get_varnames = function(dataname) {
stop("Deprecated with 0.4.0 - please extract varniable names directly from the data")
},

#' @description
#' Method is deprecated, please use `self$datanames()` instead
#'
#' @param dataname (`character` vector) names of the dataset
#'
get_filterable_datanames = function() {
stop("Deprecated with 0.4.0 - please use self$datanames() instead")
},

#' @description
#' Method is deprecated, please use `self$get_filter_state()` and retain `attr(, "filterable_varnames")` instead.
#'
#' @param dataname (`character(1)`) name of the dataset
#'
get_filterable_varnames = function(dataname) {
stop("Deprecated with teal.slice 0.4.0 - see help(teal_slices) and description of include_varnames argument.")
},

#' @description
#' Method is deprecated, please use `self$set_filter_state` and [teal_slices()] with `include_varnames` instead.
#'
#' @param dataname (`character(1)`) name of the dataset
#' @param varnames (`character` or `NULL`)
#' variables which users can choose to filter the data;
#' see `self$get_filterable_varnames` for more details
#'
#'
set_filterable_varnames = function(dataname, varnames) {
stop("Deprecated with teal.slice 0.4.0 - see help(teal_slices) and description of include_varnames argument.")
},

#' @description
#' Method is deprecated, please use `format.teal_slices` on object returned from `self$get_filter_state()`
#'
get_formatted_filter_state = function() {
stop("Deprecated with teal.slice 0.4.0 - get_filter_state returns teal_slice which has dedicated format method")
},

#' @description
#' Deprecated - please use `clear_filter_states` method.
#'
#' @param datanames (`character`)
#'
#' @return `NULL` invisibly
#'
remove_all_filter_states = function(datanames) {
warning("FilteredData$remove_all_filter_states is deprecated, please use FilteredData$clear_filter_states.")
self$clear_filter_states(dataname)
}
),

Expand Down
154 changes: 1 addition & 153 deletions man/FilteredData.Rd

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