Skip to content

Commit

Permalink
Closes #254 Replace exprs(STUDYID, USUBJID) with get_admiral_option("…
Browse files Browse the repository at this point in the history
…subject_keys") in by_vars input of derive_vars_merged() (#255)

* feat: #254 Replace exprs(STUDYID, USUBJID) with get_admiral_option("subject_keys") in by_vars input of derive_vars_merged()

* #254 add get_admiral_option to list of imports

* #254 fix failing lint

---------

Co-authored-by: Edoardo Mancini <[email protected]>
Co-authored-by: Edoardo Mancini <[email protected]>
  • Loading branch information
3 people authored Nov 14, 2024
1 parent f913d65 commit 20de30d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export(derive_var_bcvacritxfl)
export(derive_var_studyeye)
importFrom(admiral,derive_param_computed)
importFrom(admiral,derive_vars_merged)
importFrom(admiral,get_admiral_option)
importFrom(admiral,params)
importFrom(admiral,restrict_derivation)
importFrom(admiraldev,assert_character_scalar)
Expand Down
1 change: 1 addition & 0 deletions R/admiralophtha-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#' @importFrom hms as_hms
#' @importFrom lifecycle deprecate_warn deprecated deprecate_stop
#' @importFrom admiral derive_vars_merged restrict_derivation params derive_param_computed
#' get_admiral_option
#' @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 assert_vars expr_c vars2chr
Expand Down
2 changes: 1 addition & 1 deletion R/derive_var_studyeye.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ derive_var_studyeye <- function(dataset_adsl, dataset_sc, sctestcd_value = "FOCI
derive_vars_merged(
dataset_adsl,
dataset_add = dataset_sc,
by_vars = exprs(STUDYID, USUBJID),
by_vars = get_admiral_option("subject_keys"),
order = NULL,
filter_add = SCTESTCD == !!sctestcd_value,
new_vars = exprs(STUDYEYE = SCSTRESC),
Expand Down

0 comments on commit 20de30d

Please sign in to comment.