Module provides compact UI and server functions for managing a report in a shiny
app.
This module combines functionalities for adding cards to a report,
downloading the report, and resetting report content.
For more details see the vignette: vignette("simpleReporter", "teal.reporter")
.
Arguments
- id
(
character(1)
)shiny
module instance id.- reporter
(
Reporter
) instance.- card_fun
(
reactive
orfunction
) which returns ateal_card
orReportCard
instance.- global_knitr
(
list
) a globalknitr
parameters for customizing the rendering process.- rmd_output
(
character
) vector withrmarkdown
output types, by default all possiblepdf_document
,html_document
,powerpoint_presentation
, andword_document
. If vector is named then those names will appear in theUI
.- rmd_yaml_args
(
named list
) withRmd
yaml
header fields and their default values. Thislist
will result in the custom subset of UI inputs for the download reporter functionality. Defaultlist(author = "NEST", title = "Report", date = Sys.Date(), output = "html_document", toc = FALSE)
. Thelist
must include at least"output"
field. The default value for"output"
has to be in thermd_output
argument.