Skip to content

Commit

Permalink
deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed May 16, 2024
1 parent f541cb6 commit 60381a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/report_htest_ttest.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@
vars <- paste0(x$data.name)
}

text <- paste0(
final_text <- paste0(
trimws(x$method),
" testing the difference ",
ifelse(grepl(" by ", x$data.name, fixed = TRUE), "of ", "between "),
vars_full
)

text
final_text
}
1 change: 1 addition & 0 deletions R/report_participants.R
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ report_participants <- function(data,
...) {
## TODO: deprecate later
if (!is.null(group)) {
format_warning("Argument `group` is deprecated and will be removed in a future release. Please use `by` instead.") # nolint
by <- group
}

Expand Down
1 change: 1 addition & 0 deletions R/report_sample.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ report_sample <- function(data,
...) {
## 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

0 comments on commit 60381a8

Please sign in to comment.