-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Replace TealData with teal_data in the docs #845
Changes from all commits
b5c3b8a
d79eff1
2bfb054
3a11031
07fd195
f3d6296
a5643f4
bbbee71
cb4bccc
00ecbf5
b560850
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,24 +128,27 @@ template_a_gee <- function(output_table, | |
#' @export | ||
#' | ||
#' @examples | ||
#' adsl <- tmc_ex_adsl | ||
#' adqs <- tmc_ex_adqs %>% | ||
#' dplyr::filter(ABLFL != "Y" & ABLFL2 != "Y") %>% | ||
#' dplyr::mutate( | ||
#' AVISIT = as.factor(AVISIT), | ||
#' AVISITN = rank(AVISITN) %>% | ||
#' as.factor() %>% | ||
#' as.numeric() %>% | ||
#' as.factor(), | ||
#' AVALBIN = AVAL < 50 # Just as an example to get a binary endpoint. | ||
#' ) %>% | ||
#' droplevels() | ||
#' data <- teal_data() | ||
#' data <- within(data, { | ||
#' ADSL <- tmc_ex_adsl | ||
#' ADQS <- tmc_ex_adqs %>% | ||
#' dplyr::filter(ABLFL != "Y" & ABLFL2 != "Y") %>% | ||
#' dplyr::mutate( | ||
#' AVISIT = as.factor(AVISIT), | ||
#' AVISITN = rank(AVISITN) %>% | ||
#' as.factor() %>% | ||
#' as.numeric() %>% | ||
#' as.factor(), | ||
#' AVALBIN = AVAL < 50 #' Just as an example to get a binary endpoint. | ||
#' ) %>% | ||
#' droplevels() | ||
#' }) | ||
#' datanames <- c("ADSL", "ADQS") | ||
#' datanames(data) <- datanames | ||
#' data@join_keys <- cdisc_join_keys(!!!datanames) | ||
#' | ||
#' app <- init( | ||
#' data = cdisc_data( | ||
#' cdisc_dataset("ADSL", adsl), | ||
#' cdisc_dataset("ADQS", adqs) | ||
Comment on lines
-146
to
-147
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know this was not the case before, But I think we should make the @kartikeyakirar what do you think about adding it for all the examples so they are improved? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think its good idea. However, considering that these are for example for TMC modules and the preprocessing code be lengthy in some cases, which in turn might elongate the 'cdisc_data' call, I would lean towards not including it in for all the examples. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think there is no need to specify the code anymore, we have the new There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are very few examples like that, and it's included in most of the tmg examples. I will make the update. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @vedhav I think this qualifies to another issue. @kartikeyakirar feel free to make code reproducible or keep as reproducible as it was before. We need this soon on @main so I advise to make this branch ready as quick as possible. |
||
#' ), | ||
#' data = data, | ||
#' modules = modules( | ||
#' tm_a_gee( | ||
#' label = "GEE", | ||
|
@@ -155,7 +158,7 @@ template_a_gee <- function(output_table, | |
#' arm_var = choices_selected(c("ARM", "ARMCD"), "ARM"), | ||
#' visit_var = choices_selected(c("AVISIT", "AVISITN"), "AVISIT"), | ||
#' paramcd = choices_selected( | ||
#' choices = value_choices(adqs, "PARAMCD", "PARAM"), | ||
#' choices = value_choices(data[["ADQS"]], "PARAMCD", "PARAM"), | ||
#' selected = "FKSI-FWB" | ||
#' ), | ||
#' cov_var = choices_selected(c("BASE", "AGE", "SEX", "BASE:AVISIT"), NULL) | ||
|
@@ -444,14 +447,14 @@ srv_gee <- function(id, | |
datasets = data, | ||
selector_list = selector_list, | ||
merge_function = "dplyr::inner_join", | ||
join_keys = get_join_keys(data) | ||
join_keys = teal.data::get_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 = get_join_keys(data) | ||
join_keys = teal.data::get_join_keys(data) | ||
) | ||
|
||
anl_q <- shiny::reactive({ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually, I guess we only work after the changes are merged into
main
and get the proper version. But, since in this case, we're working on top of unmerged changes the version will be higher than this. If everything goes well and we mergejoin_keys
PR first it will be0.3.0.9009
so I saw we wait for the version bump till theteal.data
join_keys
PR is merged.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YEs, once
join_keys
PR is merged. will make consistent version bump to all the replace doc PR forteal.data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have the same in teal.modules.hermes https://github.com/insightsengineering/teal.modules.hermes/pull/342/files#r1386573062