Skip to content

Commit

Permalink
Merge branch '1187_decorate_output@main' into print_tm_distribution@1…
Browse files Browse the repository at this point in the history
…187_decorate_output@main

Signed-off-by: André Veríssimo <[email protected]>
  • Loading branch information
averissimo authored Nov 22, 2024
2 parents 8217187 + 5f2d532 commit fc37f17
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions R/tm_g_distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -913,9 +913,7 @@ srv_distribution <- function(id,
teal.code::eval_code(
qenv,
substitute(
expr = {
plot <- plot_call
},
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 @@ -1044,9 +1042,7 @@ srv_distribution <- function(id,
teal.code::eval_code(
qenv,
substitute(
expr = {
plot <- plot_call
},
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 @@ -1245,12 +1241,15 @@ srv_distribution <- function(id,
data = output_dist_q,
transformators = decorators
)
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_dist_q <- reactive(within(decorated_output_dist_q_no_print(), print(plot)))
decorated_output_qq_q <- reactive(within(decorated_output_qq_q_no_print(), print(plot)))
Expand Down

0 comments on commit fc37f17

Please sign in to comment.