Skip to content

Commit fc37f17

Browse files
authored
Merge branch '1187_decorate_output@main' into print_tm_distribution@1187_decorate_output@main
Signed-off-by: André Veríssimo <[email protected]>
2 parents 8217187 + 5f2d532 commit fc37f17

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

R/tm_g_distribution.R

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -913,9 +913,7 @@ srv_distribution <- function(id,
913913
teal.code::eval_code(
914914
qenv,
915915
substitute(
916-
expr = {
917-
plot <- plot_call
918-
},
916+
expr = plot <- plot_call,
919917
env = list(plot_call = Reduce(function(x, y) call("+", x, y), c(plot_call, parsed_ggplot2_args)))
920918
)
921919
)
@@ -1044,9 +1042,7 @@ srv_distribution <- function(id,
10441042
teal.code::eval_code(
10451043
qenv,
10461044
substitute(
1047-
expr = {
1048-
plot <- plot_call
1049-
},
1045+
expr = plot <- plot_call,
10501046
env = list(plot_call = Reduce(function(x, y) call("+", x, y), c(plot_call, parsed_ggplot2_args)))
10511047
)
10521048
)
@@ -1245,12 +1241,15 @@ srv_distribution <- function(id,
12451241
data = output_dist_q,
12461242
transformators = decorators
12471243
)
1244+
decorated_output_dist_q <- reactive(within(req(decorated_output_dist_q_no_print()), expr = print(plot)))
12481245

12491246
decorated_output_qq_q_no_print <- srv_transform_teal_data(
12501247
"d_qq",
12511248
data = output_qq_q,
12521249
transformators = decorators
12531250
)
1251+
decorated_output_qq_q <- reactive(within(req(decorated_output_qq_q_no_print()), expr = print(plot)))
1252+
12541253

12551254
decorated_output_dist_q <- reactive(within(decorated_output_dist_q_no_print(), print(plot)))
12561255
decorated_output_qq_q <- reactive(within(decorated_output_qq_q_no_print(), print(plot)))

0 commit comments

Comments
 (0)