Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #254 Replace exprs(STUDYID, USUBJID) with get_admiral_option("subject_keys") in by_vars input of derive_vars_merged() #255

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading