29c485167c | ||
---|---|---|
.. | ||
README.md | ||
minimal report.html | ||
minimal.Rmd |
README.md
Minimal RMarkdown Report Template
Parameters
The following parameters describe the arguments that will be passed to within the report function.
data
: the input must be a data frame with the columns as a Standard Person Query, which is built using thesq_data
inbuilt into the 'wpa' package.report_title
: string containing the title of the report, which will be passed toset_title
within the RMarkdown template.hrvar
: string specifying the HR attribute that will be passed into the single plot.mingroup
: numeric value specifying the minimum group size to filter the data by.
Report Type
This is a standard RMarkdown report.
Report output
This report contains one single plot and a print out of the data diagnostics.
Data preparation
No data preparation is required as long as it is a Standard Person Query.
Examples
For an example of the report output, see minimal report.html
.
To run this report, you may run:
generate_report2(
output_format = rmarkdown::html_document(toc = TRUE, toc_depth = 6, theme = "cosmo"),
output_file = "minimal report.html",
output_dir = here("templates", "minimal-example"), # path for output
report_title = "Minimal Report",
rmd_dir = here("templates", "minimal-example", "minimal.Rmd"), # path to RMarkdown file,
# Custom arguments to pass to `minimal-example/minimal.Rmd`
data = sq_data,
hrvar = "Organization",
mingroup = 5
)