Skip to content

Commit

Permalink
Soft deprecate & use datasets_selected argument when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
llrs-roche committed Jan 10, 2025
1 parent 341e039 commit 883d667
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion R/tm_data_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ tm_data_table <- function(label = "Data Table",
})
}
if (!is.null(datasets_selected)) {
lifecycle::deprecate_stop(
lifecycle::deprecate_soft(
when = "0.4.0",
what = "tm_data_table(datasets_selected = 'is deprecated, use `datanames`')"
)
Expand Down
2 changes: 1 addition & 1 deletion R/tm_front_page.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ tm_front_page <- function(label = "Front page",
checkmate::assert_multi_class(additional_tags, classes = c("shiny.tag.list", "html"))
checkmate::assert_character(footnotes, min.len = 0, any.missing = FALSE)
if (!is.null(show_metadata)) {
lifecycle::deprecate_stop(
lifecycle::deprecate_soft(
when = "0.4.0",
what = "tm_front_page(show_metadata = 'is deprecated, use `datanames`')"
)
Expand Down
6 changes: 3 additions & 3 deletions R/tm_variable_browser.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@
#' @export
#'
tm_variable_browser <- function(label = "Variable Browser",
datasets_selected = NULL,
datanames = NULL,
datasets_selected = "all",
datanames = datasets_selected,
parent_dataname = "ADSL",
pre_output = NULL,
post_output = NULL,
Expand All @@ -103,7 +103,7 @@ tm_variable_browser <- function(label = "Variable Browser",
# Start of assertions
checkmate::assert_string(label)
if (!is.null(datasets_selected)) {
lifecycle::deprecate_stop(
lifecycle::deprecate_soft(
when = "0.4.0",
what = "tm_variable_browser(datasets_selected = 'is deprecated, use `datanames`')"
)
Expand Down
3 changes: 2 additions & 1 deletion man/tm_front_page.Rd

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

4 changes: 2 additions & 2 deletions man/tm_variable_browser.Rd

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

0 comments on commit 883d667

Please sign in to comment.