Skip to content

Commit

Permalink
chore: #2125 change news blurb and fix deprecation messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelos Zhu committed Oct 13, 2023
1 parent 368f4af commit 90a77e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

- `derive_extreme_records()`, `derive_var_extreme_flag()`,`derive_vars_joined()` and `derive_vars_merged()` were enhanced with the arguments `true_value` and `false_value` to align with preexisting functions that had similar functionality (#2125)

- The default value for the `false_value` argument in `derive_extreme_records()` was changed to `NA_character_` (#2125)

- `restrict_derivation()` now allows `{dplyr}` functions like `mutate` in the `derivation argument (#2143)

- `derive_summary_records()`, `derive_var_merged_summary()`, and `get_summary_records()`
Expand All @@ -28,6 +26,8 @@ were enhanced such that more than one summary variable can be derived, e.g.,

- For the function `derive_vars_merged()`, the argument `match_flag` was renamed to `exist_flag` (#2125)

- The default value for the `false_value` argument in `derive_extreme_records()` was changed to `NA_character_` (#2125)

- The following functions, which were deprecated in previous `{admiral}` versions, have been removed: (#2098)
- `derive_param_extreme_event()`
- `derive_vars_last_dose()`
Expand Down
8 changes: 4 additions & 4 deletions R/derive_merged.R
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ derive_vars_merged <- function(dataset,
new_vars = NULL,
filter_add = NULL,
mode = NULL,
match_flag = NULL,
match_flag,
exist_flag = NULL,
true_value = "Y",
false_value = NA_character_,
Expand All @@ -329,11 +329,11 @@ derive_vars_merged <- function(dataset,
extract_vars(new_vars)
)
)
if (!is.null(match_flag)) {
if (!is_missing(match_flag)) {
deprecate_warn(
"1.0.0",
"derive_vars_merged(old_param = 'match_flag')",
"derive_vars_merged(new_param = 'exist_flag')"
"derive_vars_merged(match_flag =)",
"derive_vars_merged(exist_flag =)"
)
exist_flag <- assert_symbol(enexpr(match_flag), optional = TRUE)
}
Expand Down
2 changes: 1 addition & 1 deletion man/derive_vars_merged.Rd

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

0 comments on commit 90a77e3

Please sign in to comment.