Skip to content

Commit 77cc108

Browse files
committed
example with keep_in_report()
1 parent c1abab4 commit 77cc108

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

R/tm_a_regression.R

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,15 @@ srv_a_regression <- function(id,
11221122
teal.reporter::code_chunk(
11231123
"head(iris)"
11241124
),
1125-
head(iris)
1125+
head(iris),
1126+
1127+
"## keep_in_report",
1128+
1129+
"If you don't want to include code for head(mtcars) in report - just don't include it.",
1130+
1131+
"If you want the object to be kept in the report as loaded from .rds use keep_in_report()",
1132+
head(mtcars) |> keep_in_report()
1133+
11261134
)
11271135
})
11281136
###

0 commit comments

Comments
 (0)