Skip to content

Commit ea33026

Browse files
committed
link objects in tmg
1 parent 9c16a21 commit ea33026

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

R/tm_a_regression.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ srv_a_regression <- function(id,
10601060

10611061
### REPORTER
10621062
card_fun <- reactive({
1063-
req(plot_r(), source_code_r())
1063+
req(plot_r(), plot_code_r(), setup_code_r(), data_prep_code_r(), fit_code_r(), fitted())
10641064
teal.reporter::report_document(
10651065

10661066
"## Setup",
@@ -1078,8 +1078,10 @@ srv_a_regression <- function(id,
10781078
),
10791079

10801080
"## Plot",
1081-
teal.reporter::code_chunk(plot_code_r() |> styler::style_text() |> paste(collapse = "\n")), #|> teal.reporter::link_output(plot_r()),
1082-
plot_r(),
1081+
teal.reporter::code_chunk(
1082+
plot_code_r() |> styler::style_text() |> paste(collapse = "\n")
1083+
) |>
1084+
teal.reporter::link_output(plot_r()),
10831085

10841086
"## Table for testing",
10851087
head(iris)

0 commit comments

Comments
 (0)