-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Apply Quosure and data in tmg #440
Conversation
@@ -327,16 +327,17 @@ ui_g_bivariate <- function(id, ...) { | |||
) | |||
) | |||
), | |||
forms = teal::get_rcode_ui(ns("rcode")), | |||
forms = teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code"), |
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.
Explanation comment
formerly teal::get_rcode_ui
(and teal::get_rcode_srv
) is dependent on chunks, thus it needs to be replaced.
@@ -371,26 +370,33 @@ srv_g_bivariate <- function(id, | |||
selectors | |||
}) | |||
|
|||
merged_data <- teal.transform::data_merge_srv( | |||
anl_merged_input <- teal.transform::merge_expression_srv( |
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.
Explanation comment
merge module does not return $data
anymore so we can't call it merged_data
teal.code::eval_code(merged$anl_q_r(), substitute(expr = p <- cl, env = list(cl = cl)), name = "plot_call") %>% | ||
teal.code::eval_code(print_call, name = "print_call") |
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.
Explanation comment
previously code has been added to the chunks using chunks_push
and evaluated at the end using chunks_safe_eval
.
Now we eval_code
which is equivalent of chunks_push + chunks_eval
…eering/teal.modules.general into 26_new_chunks@main
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.
Empty fitlers crash all apps when pressing show R code
with the following error:
arning: Error in <Anonymous>: error in evaluating the argument 'object' in selecting a method for function 'get_code': Minimum number of records not met: >= 10 records required.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
* Update check.yaml * test * linters_with_defaults * Update check.yaml
Co-authored-by: Mahmoud Hallal <86970066+mhallal1@users.noreply.github.com>
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.
LGTM, an issue is create for this review: #440 (comment)
closes #388 #388