Skip to content

Commit

Permalink
adding join_key changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikeyakirar committed Nov 9, 2023
1 parent b560850 commit 8fb47d5
Show file tree
Hide file tree
Showing 47 changed files with 89 additions and 93 deletions.
6 changes: 3 additions & 3 deletions R/tm_a_gee.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ template_a_gee <- function(output_table,
#' })
#' datanames <- c("ADSL", "ADQS")
#' datanames(data) <- datanames
#' data@join_keys <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#'
#' app <- init(
#' data = data,
Expand Down Expand Up @@ -447,14 +447,14 @@ srv_gee <- function(id,
datasets = data,
selector_list = selector_list,
merge_function = "dplyr::inner_join",
join_keys = teal.data::get_join_keys(data)
join_keys = teal.data::join_keys(data)
)

adsl_inputs <- teal.transform::merge_expression_module(
datasets = data,
data_extract = list(arm_var = arm_var),
anl_name = "ANL_ADSL",
join_keys = teal.data::get_join_keys(data)
join_keys = teal.data::join_keys(data)
)

anl_q <- shiny::reactive({
Expand Down
6 changes: 3 additions & 3 deletions R/tm_a_mmrm.R
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ template_mmrm_plots <- function(fit_name,
#'
#' datanames <- c("ADSL", "ADQS")
#' datanames(data) <- datanames
#' data@join_keys <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' app <- init(
#' data = data,
#' modules = modules(
Expand Down Expand Up @@ -920,14 +920,14 @@ srv_mmrm <- function(id,
anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
selector_list = selector_list_without_cov,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
merge_function = "dplyr::inner_join"
)

adsl_merge_inputs <- teal.transform::merge_expression_module(
datasets = data,
data_extract = list(arm_var = arm_var),
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
anl_name = "ANL_ADSL"
)

Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_barchart_simple.R
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ srv_g_barchart_simple <- function(id,

anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
selector_list = selector_list
)

Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ srv_g_ci <- function(id, # nolint

anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
selector_list = selector_list
)

Expand Down
4 changes: 2 additions & 2 deletions R/tm_g_forest_rsp.R
Original file line number Diff line number Diff line change
Expand Up @@ -521,13 +521,13 @@ srv_g_forest_rsp <- function(id,
datasets = data,
selector_list = selector_list,
merge_function = "dplyr::inner_join",
join_keys = teal.data::get_join_keys(data)
join_keys = teal.data::join_keys(data)
)

adsl_inputs <- teal.transform::merge_expression_module(
datasets = data,
data_extract = list(arm_var = arm_var, subgroup_var = subgroup_var, strata_var = strata_var),
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
anl_name = "ANL_ADSL"
)

Expand Down
4 changes: 2 additions & 2 deletions R/tm_g_forest_tte.R
Original file line number Diff line number Diff line change
Expand Up @@ -522,14 +522,14 @@ srv_g_forest_tte <- function(id,

anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
selector_list = selector_list,
merge_function = "dplyr::inner_join"
)

adsl_inputs <- teal.transform::merge_expression_module(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
data_extract = list(arm_var = arm_var, subgroup_var = subgroup_var, strata_var = strata_var),
anl_name = "ANL_ADSL"
)
Expand Down
4 changes: 2 additions & 2 deletions R/tm_g_ipp.R
Original file line number Diff line number Diff line change
Expand Up @@ -499,12 +499,12 @@ srv_g_ipp <- function(id,
datasets = data,
selector_list = selector_list,
merge_function = "dplyr::inner_join",
join_keys = teal.data::get_join_keys(data)
join_keys = teal.data::join_keys(data)
)

adsl_inputs <- teal.transform::merge_expression_module(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
data_extract = list(arm_var = arm_var, id_var = id_var),
anl_name = "ANL_ADSL"
)
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_km.R
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ srv_g_km <- function(id,

anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
selector_list = selector_list,
merge_function = "dplyr::inner_join"
)
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_lineplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ srv_g_lineplot <- function(id,

anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
selector_list = selector_list,
merge_function = "dplyr::inner_join"
)
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_pp_adverse_events.R
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ srv_g_adverse_events <- function(id,
anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
selector_list = selector_list,
join_keys = teal.data::get_join_keys(data)
join_keys = teal.data::join_keys(data)
)

anl_q <- shiny::reactive(
Expand Down
4 changes: 2 additions & 2 deletions R/tm_g_pp_patient_timeline.R
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ template_patient_timeline <- function(dataname = "ANL",
#' })
#'
#' datanames(data) <- c("ADSL", "ADAE", "ADCM")
#' data@join_keys <- join_keys(
#' join_keys(data) <- join_keys(
#' join_key("ADSL", keys = get_cdisc_keys("ADSL")),
#' join_key("ADAE", keys = get_cdisc_keys("ADAE")),
#' join_key("ADCM", keys = adcm_keys),
Expand Down Expand Up @@ -772,7 +772,7 @@ srv_g_patient_timeline <- function(id,

anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
selector_list = selector_list
)

Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_pp_therapy.R
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ srv_g_therapy <- function(id,

anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
selector_list = selector_list,
merge_function = "dplyr::left_join"
)
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_pp_vitals.R
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ srv_g_vitals <- function(id,

anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
selector_list = selector_list,
merge_function = "dplyr::left_join"
)
Expand Down
6 changes: 3 additions & 3 deletions R/tm_t_abnormality.R
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ template_abnormality <- function(parentname,
#' })
#' datanames <- c("ADSL", "ADLB")
#' datanames(data) <- datanames
#' data@join_keys <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#'
#' app <- init(
#' data = data,
Expand Down Expand Up @@ -542,14 +542,14 @@ srv_t_abnormality <- function(id,

anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
selector_list = selector_list,
merge_function = "dplyr::inner_join"
)

adsl_inputs <- teal.transform::merge_expression_module(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
data_extract = list(arm_var = arm_var),
anl_name = "ANL_ADSL"
)
Expand Down
4 changes: 2 additions & 2 deletions R/tm_t_abnormality_by_worst_grade.R
Original file line number Diff line number Diff line change
Expand Up @@ -534,13 +534,13 @@ srv_t_abnormality_by_worst_grade <- function(id, # nolint
anl_inputs <- teal.transform::merge_expression_srv(
selector_list = selector_list,
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
merge_function = "dplyr::inner_join"
)

adsl_inputs <- teal.transform::merge_expression_module(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
data_extract = list(arm_var = arm_var),
anl_name = "ANL_ADSL"
)
Expand Down
4 changes: 2 additions & 2 deletions R/tm_t_ancova.R
Original file line number Diff line number Diff line change
Expand Up @@ -730,15 +730,15 @@ srv_ancova <- function(id,
anl_inputs <- teal.transform::merge_expression_srv(
selector_list = selector_list,
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
merge_function = "dplyr::inner_join"
)

adsl_inputs <- teal.transform::merge_expression_module(
datasets = data,
data_extract = list(arm_var = arm_var),
anl_name = "ANL_ADSL",
join_keys = teal.data::get_join_keys(data)
join_keys = teal.data::join_keys(data)
)

anl_q <- shiny::reactive({
Expand Down
4 changes: 2 additions & 2 deletions R/tm_t_binary_outcome.R
Original file line number Diff line number Diff line change
Expand Up @@ -792,13 +792,13 @@ srv_t_binary_outcome <- function(id,
datasets = data,
selector_list = selector_list,
merge_function = "dplyr::inner_join",
join_keys = teal.data::get_join_keys(data)
join_keys = teal.data::join_keys(data)
)

adsl_inputs <- teal.transform::merge_expression_module(
datasets = data,
data_extract = list(arm_var = arm_var, strata_var = strata_var),
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
anl_name = "ANL_ADSL"
)

Expand Down
6 changes: 3 additions & 3 deletions R/tm_t_coxreg.R
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ template_coxreg_m <- function(dataname,
#' })
#' datanames <- c("ADSL", "ADTTE")
#' datanames(data) <- datanames
#' data@join_keys <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#'
#' app <- init(
#' data = data,
Expand Down Expand Up @@ -439,7 +439,7 @@ template_coxreg_m <- function(dataname,
#'
#' datanames <- c("ADSL", "ADTTE")
#' datanames(data) <- datanames
#' data@join_keys <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#'
#' ## Teal application
#' ## ================
Expand Down Expand Up @@ -790,7 +790,7 @@ srv_t_coxreg <- function(id,

anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
selector_list = selector_list,
merge_function = "dplyr::inner_join"
)
Expand Down
4 changes: 2 additions & 2 deletions R/tm_t_events.R
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ srv_t_events_byterm <- function(id,

anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
selector_list = selector_list,
merge_function = "dplyr::inner_join"
)
Expand All @@ -688,7 +688,7 @@ srv_t_events_byterm <- function(id,
datasets = data,
data_extract = list(arm_var = arm_var),
anl_name = "ANL_ADSL",
join_keys = teal.data::get_join_keys(data)
join_keys = teal.data::join_keys(data)
)

anl_q <- shiny::reactive({
Expand Down
6 changes: 3 additions & 3 deletions R/tm_t_events_by_grade.R
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ template_events_col_by_grade <- function(dataname,
#'
#' datanames <- c("ADSL", "ADAE")
#' datanames(data) <- datanames
#' data@join_keys <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#'
#' app <- init(
#' data = data,
Expand Down Expand Up @@ -1046,14 +1046,14 @@ srv_t_events_by_grade <- function(id,
anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
selector_list = selector_list,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
merge_function = "dplyr::inner_join"
)

adsl_inputs <- teal.transform::merge_expression_module(
datasets = data,
data_extract = list(arm_var = arm_var),
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
anl_name = "ANL_ADSL"
)

Expand Down
4 changes: 2 additions & 2 deletions R/tm_t_events_patyear.R
Original file line number Diff line number Diff line change
Expand Up @@ -443,14 +443,14 @@ srv_events_patyear <- function(id,
anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
selector_list = selector_list,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
merge_function = "dplyr::inner_join"
)

adsl_inputs <- teal.transform::merge_expression_module(
datasets = data,
data_extract = list(arm_var = arm_var),
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
anl_name = "ANL_ADSL"
)

Expand Down
6 changes: 3 additions & 3 deletions R/tm_t_events_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ template_events_summary <- function(anl_name,
#'
#' datanames <- c("ADSL", "ADAE")
#' datanames(data) <- datanames
#' data@join_keys <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#'
#' app <- init(
#' data = data,
Expand Down Expand Up @@ -824,14 +824,14 @@ srv_t_events_summary <- function(id,
anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
selector_list = selector_list,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
merge_function = "dplyr::inner_join"
)

adsl_inputs <- teal.transform::merge_expression_module(
datasets = data,
data_extract = Filter(Negate(is.null), list(arm_var = arm_var, dthfl_var = dthfl_var, dcsreas_var = dcsreas_var)),
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
anl_name = "ANL_ADSL"
)

Expand Down
6 changes: 3 additions & 3 deletions R/tm_t_exposure.R
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ template_exposure <- function(parentname,
#'
#' datanames <- c("ADSL", "ADEX")
#' datanames(data) <- datanames
#' data@join_keys <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#'
#' app <- init(
#' data = data,
Expand Down Expand Up @@ -528,13 +528,13 @@ srv_t_exposure <- function(id,
anl_inputs <- teal.transform::merge_expression_srv(
datasets = data,
selector_list = selector_list,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
merge_function = "dplyr::inner_join"
)

adsl_inputs <- teal.transform::merge_expression_module(
datasets = data,
join_keys = teal.data::get_join_keys(data),
join_keys = teal.data::join_keys(data),
data_extract = list(col_by_var = col_by_var),
anl_name = "ANL_ADSL"
)
Expand Down
Loading

0 comments on commit 8fb47d5

Please sign in to comment.