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

Apply Quosure and data in tmg #440

Merged
merged 95 commits into from
Sep 7, 2022
Merged

Conversation

Polkas
Copy link
Contributor

@Polkas Polkas commented Aug 16, 2022

closes #388 #388

@Polkas Polkas added the core label Aug 16, 2022
@@ -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"),
Copy link
Contributor

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.

R/tm_g_bivariate.R Outdated Show resolved Hide resolved
R/tm_g_bivariate.R Outdated Show resolved Hide resolved
@@ -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(
Copy link
Contributor

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

R/tm_g_bivariate.R Outdated Show resolved Hide resolved
Comment on lines +536 to +537
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")
Copy link
Contributor

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

R/tm_a_pca.R Outdated Show resolved Hide resolved
R/tm_g_association.R Outdated Show resolved Hide resolved
Copy link
Collaborator

@mhallal1 mhallal1 left a 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.

R/tm_a_pca.R Show resolved Hide resolved
@nikolas-burkoff

This comment was marked as resolved.

@Polkas

This comment was marked as outdated.

@gogonzo gogonzo changed the base branch from main to teal_refactor@main September 6, 2022 08:56
R/tm_a_pca.R Outdated Show resolved Hide resolved
@gogonzo gogonzo changed the base branch from teal_refactor@main to main September 7, 2022 08:43
Copy link
Collaborator

@mhallal1 mhallal1 left a 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)

@gogonzo gogonzo changed the base branch from main to teal_refactor@main September 7, 2022 09:59
@gogonzo gogonzo merged commit ef4fe76 into teal_refactor@main Sep 7, 2022
@gogonzo gogonzo deleted the 26_new_chunks@main branch September 7, 2022 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace chunks with the quosure
6 participants