-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
42 lines (30 loc) · 1.2 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
output: github_document
---
# multireport
<!-- badges: start -->
<!-- badges: end -->
[Parameterized reporting](https://medium.com/@urban_institute/iterated-fact-sheets-with-r-markdown-d685eb4eafce) is powerful but complicated. This package makes it simpler by providing a single function — [`multireport()`](reference/multireport.html) — to simplify the processing.
## Installation
You can install the package from [GitHub](https://github.com/) with:
``` r
# install.packages("remotes")
remotes::install_github("dgkeyes/multireport")
```
## Example
This shows how to make multiple reports using the [`multireport()`](reference/multireport.html) function:
```{r eval = FALSE}
library(multireport)
parameters <- tibble(
state = unique(fivethirtyeight::bad_drivers$state),
losses = unique(fivethirtyeight::bad_drivers$losses)
)
multireport(rmarkdown = "inst/report.Rmd",
params_data_frame = parameters,
report_title_param = "state",
report_suffix = "-report",
report_title_to_lower = TRUE,
report_format = "html_document",
report_output_directory = "inst/reports/")
```
This will generate a series of reports in the inst/reports folder.