Exported to be able to use methods not to be used directly by module-developers or app-users. Primarily used to modify the output object of module.
Examples
library("teal.reporter")
#>
#> Attaching package: ‘teal.reporter’
#> The following object is masked from ‘package:testthat’:
#>
#> Reporter
hide_code <- function(input, output, session, data) {
teal_card(data) <- Filter(function(x) !inherits(x, "code_chunk"), teal_card(data))
data
}
app <- init(
data = teal_data(IRIS = iris, MTCARS = mtcars),
modules = example_module() |>
after(server = hide_code)
)
if (interactive()) {
runApp(app)
}