-
-
Notifications
You must be signed in to change notification settings - Fork 22
Unify picks feature branch: default parameters #1533
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
Changes from 34 commits
8569fcf
3ea7db6
c1de7d4
d22c24a
f46da8e
8979231
3740ad7
4fc4063
e592e50
7592e8f
a968f6f
4b23cc8
0075ecd
267084a
9f01cfd
f6f4068
f1b67a4
8eb76bd
9d2ce61
e2c245a
23c709a
df3ecda
690fc28
7735fa5
5cd0633
aa6276c
14ab2b8
0a7e41c
3f7d25d
8aff817
4418b84
d089218
318d1f9
bf56ad1
db7907c
79be8b0
3dc5e0f
95aa810
4d8838f
4ace382
bafc60e
c45c3f2
8992b85
3e3863c
96aeaa5
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 |
|---|---|---|
|
|
@@ -2,44 +2,12 @@ | |
| #' (use [`tm_g_ci.variables()`] to pass [`teal.picks::variables()`] objects; they are wrapped into \code{picks}). | ||
| #' @export | ||
| tm_g_ci.picks <- function(label, | ||
| x_var = teal.picks::picks( | ||
| teal.picks::datasets("ADSL"), | ||
| teal.picks::variables( | ||
| choices = c("ARMCD", "BMRKR2"), | ||
| selected = "ARMCD", | ||
| multiple = FALSE | ||
| ) | ||
| ), | ||
| y_var = teal.picks::picks( | ||
| teal.picks::datasets("ADLB"), | ||
| teal.picks::variables( | ||
| choices = c("AVAL", "CHG", "CHG2"), | ||
| selected = "AVAL", | ||
| multiple = FALSE | ||
| ) | ||
| ), | ||
| color = teal.picks::picks( | ||
| teal.picks::datasets("ADSL"), | ||
| teal.picks::variables( | ||
| choices = c("SEX", "STRATA1", "STRATA2"), | ||
| selected = "STRATA1", | ||
| multiple = FALSE | ||
| ) | ||
| ), | ||
| x_var, | ||
| y_var, | ||
| color, | ||
|
Contributor
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. At some point I though that for S3 dispatches for teal.picks we will just provide teal.picks default.
Contributor
Author
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 guess picks should the default then, I'll make the change there
Contributor
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. thanks!
Contributor
Author
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. Done, please review @m7pr
Contributor
Author
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. Note: can you update the documentation field on |
||
| stat = c("mean", "median"), | ||
| paramcd = teal.picks::values( | ||
| choices = c("ALT", "CRP", "IGA"), | ||
| selected = "ALT", | ||
| multiple = FALSE | ||
| ), | ||
| avisit = teal.picks::values( | ||
| choices = c( | ||
| "SCREENING", "BASELINE", "WEEK 1 DAY 8", "WEEK 2 DAY 15", | ||
| "WEEK 3 DAY 22", "WEEK 4 DAY 29", "WEEK 5 DAY 36" | ||
| ), | ||
| selected = "SCREENING", | ||
| multiple = FALSE | ||
| ), | ||
| paramcd, | ||
| avisit, | ||
| conf_level = teal.picks::values(c(0.95, 0.9, 0.8), 0.95), | ||
| plot_height = c(700L, 200L, 2000L), | ||
| plot_width = NULL, | ||
|
|
@@ -105,27 +73,11 @@ | |
| #' @describeIn tm_g_ci teal.picks encodings via \code{variables} (recommended entry point). | ||
| #' @export | ||
| tm_g_ci.variables <- function(label, | ||
| x_var = teal.picks::variables( | ||
| choices = c("ARMCD", "BMRKR2"), | ||
| selected = "ARMCD", | ||
| multiple = FALSE | ||
| ), | ||
| y_var = teal.picks::variables( | ||
| choices = c("AVAL", "CHG", "CHG2"), | ||
| selected = "AVAL", | ||
| multiple = FALSE | ||
| ), | ||
| color = teal.picks::variables( | ||
| choices = c("SEX", "STRATA1", "STRATA2"), | ||
| selected = "STRATA1", | ||
| multiple = FALSE | ||
| ), | ||
| x_var, | ||
| y_var, | ||
| color, | ||
| stat = c("mean", "median"), | ||
| paramcd = teal.picks::values( | ||
| choices = c("ALT", "CRP", "IGA"), | ||
| selected = "ALT", | ||
| multiple = FALSE | ||
| ), | ||
| paramcd = NULL, | ||
| avisit = teal.picks::values( | ||
| choices = c( | ||
| "SCREENING", "BASELINE", "WEEK 1 DAY 8", "WEEK 2 DAY 15", | ||
|
|
@@ -162,7 +114,7 @@ | |
| } | ||
|
|
||
| #' @keywords internal | ||
| ui_g_ci.picks <- function(id, | ||
| x_var_picks, | ||
| y_var_picks, | ||
| paramcd_picks, | ||
|
|
@@ -220,7 +172,7 @@ | |
| } | ||
|
|
||
| #' @keywords internal | ||
| srv_g_ci.picks <- function(id, | ||
| data, | ||
| x_dataname, | ||
| y_dataname, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.