Skip to content

Commit

Permalink
#180 removed derive_var_merged_cat() in derive_var_studyeye() in …
Browse files Browse the repository at this point in the history
…favour of `derive_vars_merged()`
  • Loading branch information
manciniedoardo committed Jul 27, 2023
1 parent 9ee75f3 commit f5b77de
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
3 changes: 1 addition & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export(derive_var_afeye)
export(derive_var_bcvacritxfl)
export(derive_var_studyeye)
importFrom(admiral,derive_param_computed)
importFrom(admiral,derive_var_merged_cat)
importFrom(admiral,derive_vars_merged)
importFrom(admiral,params)
importFrom(admiral,restrict_derivation)
importFrom(admiraldev,assert_character_scalar)
Expand All @@ -17,7 +17,6 @@ importFrom(admiraldev,assert_numeric_vector)
importFrom(admiraldev,assert_symbol)
importFrom(admiraldev,expect_dfs_equal)
importFrom(admiraldev,expr_c)
importFrom(admiraldev,quo_c)
importFrom(dplyr,arrange)
importFrom(dplyr,bind_cols)
importFrom(dplyr,bind_rows)
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# admiralophtha 0.3.0

## Updates to Functions

- Switched out `derive_var_merged_cat()` for `derive_vars_merged()` in the function `derive_var_Studyeye()` due to deprecation of the former in favor of the latter in `{admiral }`(#119).

## Updates to Templates

# admiralophtha 0.2.0

## Updates to Functions
Expand Down
4 changes: 2 additions & 2 deletions R/admiralophtha-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#' @importFrom tidyselect all_of contains vars_select
#' @importFrom hms as_hms
#' @importFrom lifecycle deprecate_warn deprecated deprecate_stop
#' @importFrom admiral derive_var_merged_cat restrict_derivation params derive_param_computed
#' @importFrom admiraldev assert_symbol assert_data_frame expect_dfs_equal quo_c assert_data_frame
#' @importFrom admiral derive_vars_merged restrict_derivation params derive_param_computed
#' @importFrom admiraldev assert_symbol assert_data_frame expect_dfs_equal assert_data_frame
#' assert_character_vector assert_character_scalar assert_integer_scalar
#' assert_numeric_vector expr_c
"_PACKAGE"
12 changes: 6 additions & 6 deletions R/derive_var_studyeye.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ derive_var_studyeye <- function(dataset_adsl, dataset_sc, sctestcd_value = "FOCI
)
}

derive_var_merged_cat(
derive_vars_merged(
dataset_adsl,
dataset_add = dataset_sc,
by_vars = exprs(STUDYID, USUBJID),
order = NULL,
filter_add = SCTESTCD == !!sctestcd_value,
new_var = STUDYEYE,
source_var = SCSTRESC,
cat_fun = seye_cat,
new_var = exprs(tmp_STUDYEYE = SCSTRESC),
mode = NULL,
missing_value = ""
)
missing_values = exprs(tmp_STUDYEYE = "")
) %>%
mutate(STUDYEYE = seye_cat(tmp_STUDYEYE)) %>%
select(-tmp_STUDYEYE)
}

0 comments on commit f5b77de

Please sign in to comment.