Skip to content

Commit

Permalink
Merge branch '1187_decorate_output@main' into tm_scatterplot@1187_dec…
Browse files Browse the repository at this point in the history
…orate_output@main
  • Loading branch information
averissimo authored Nov 22, 2024
2 parents 985a22d + 89f1d44 commit 5247177
Show file tree
Hide file tree
Showing 16 changed files with 64 additions and 66 deletions.
18 changes: 8 additions & 10 deletions R/tm_g_distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -913,10 +913,7 @@ srv_distribution <- function(id,
teal.code::eval_code(
qenv,
substitute(
expr = {
plot <- plot_call
print(plot)
},
expr = plot <- plot_call,
env = list(plot_call = Reduce(function(x, y) call("+", x, y), c(plot_call, parsed_ggplot2_args)))
)
)
Expand Down Expand Up @@ -1045,10 +1042,7 @@ srv_distribution <- function(id,
teal.code::eval_code(
qenv,
substitute(
expr = {
plot <- plot_call
print(plot)
},
expr = plot <- plot_call,
env = list(plot_call = Reduce(function(x, y) call("+", x, y), c(plot_call, parsed_ggplot2_args)))
)
)
Expand Down Expand Up @@ -1242,18 +1236,22 @@ srv_distribution <- function(id,
output_dist_q <- reactive(c(output_common_q(), req(dist_q())))
output_qq_q <- reactive(c(output_common_q(), req(qq_q())))

decorated_output_dist_q <- srv_transform_teal_data(
decorated_output_dist_q_no_print <- srv_transform_teal_data(
"d_dist",
data = output_dist_q,
transformators = decorators
)

decorated_output_qq_q <- srv_transform_teal_data(
decorated_output_dist_q <- reactive(within(req(decorated_output_dist_q_no_print()), expr = print(plot)))

decorated_output_qq_q_no_print <- srv_transform_teal_data(
"d_qq",
data = output_qq_q,
transformators = decorators
)

decorated_output_qq_q <- reactive(within(req(decorated_output_qq_q_no_print()), expr = print(plot)))

decorated_output_q <- reactive({
tab <- req(input$tabs) # tab is NULL upon app launch, hence will crash without this statement
if (tab == "Histogram") {
Expand Down
8 changes: 4 additions & 4 deletions man/tm_a_pca.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/tm_a_regression.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/tm_data_table.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5247177

Please sign in to comment.