Skip to content

Commit

Permalink
throw deprecated warning
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed May 16, 2024
1 parent 849db1e commit 89820a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/export_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export_table <- function(x,
footer = NULL,
align = NULL,
by = NULL,
group_by = NULL, ## TODO: deprecate later
group_by = NULL,
zap_small = FALSE,
table_width = NULL,
verbose = TRUE,
Expand All @@ -135,6 +135,7 @@ export_table <- function(x,

## TODO: deprecate later
if (!is.null(group_by)) {
format_warning("Argument `group_by` is deprecated and will be removed in a future release. Please use `by` instead.") # nolint
by <- group_by
}

Expand Down
2 changes: 2 additions & 0 deletions R/get_datagrid.R
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ get_datagrid.data.frame <- function(x,
...) {
## TODO: deprecate later
if (!is.null(at)) {
format_warning("Argument `at` is deprecated and will be removed in a future release. Please use `by` instead.") # nolint
by <- at
}

Expand Down Expand Up @@ -746,6 +747,7 @@ get_datagrid.default <- function(x,
...) {
## TODO: deprecate later
if (!is.null(at)) {
format_warning("Argument `at` is deprecated and will be removed in a future release. Please use `by` instead.") # nolint
by <- at
}

Expand Down
1 change: 1 addition & 0 deletions R/print_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ print_parameters <- function(x,
split_by = NULL) {
## TODO: deprecte later
if (!is.null(split_by)) {
format_warning("Argument `split_by` is deprecated and will be removed in a future release. Please use `by` instead.") # nolint
by <- split_by
}

Expand Down

0 comments on commit 89820a6

Please sign in to comment.