three buttons for adding cards, downloading and resetting the Report.
The add module has
add_report_card_simple id, the download module the download_button_simple id
and the reset module the reset_button_simple id.
For more details see the vignette: vignette("simpleReporter", "teal.reporter").
Usage
simple_reporter_srv(
id,
reporter,
card_fun,
rmd_output = c(html = "html_document", pdf = "pdf_document", powerpoint =
"powerpoint_presentation", word = "word_document"),
rmd_yaml_args = list(author = "NEST", title = "Report", date =
as.character(Sys.Date()), output = "html_document", toc = FALSE)
)Arguments
- id
character(1)thisshinymodule's id.- reporter
Reporterinstance.- card_fun
functionwhich returns aReportCardinstance, the function has acardargument and an optionalcommentargument.- rmd_output
charactervector withrmarkdownoutput types, by default all possiblec("pdf_document", "html_document", "powerpoint_presentation", "word_document"). If vector is named then those names will appear in theUI.- rmd_yaml_args
named listwithRmdyamlheader fields and their default values. Thislistwill result in the custom subset of User Interface inputs for the download reporter functionality. Defaultlist(author = "NEST", title = "Report", date = Sys.Date(), output = "html_document", toc = FALSE). Thelistmust include at least"output"field. The default value for"output"has to be in thermd_outputargument.