-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
67 lines (47 loc) · 2.37 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# cccmdown
<!-- badges: start -->
[](https://www.repostatus.org/#wip)
[](https://github.com/unhcr-dataviz/cccmdown/actions/workflows/R-CMD-check.yaml)
[](https://CRAN.R-project.org/package=unhcrthemes)
<!-- badges: end -->
The goal of `{cccmdown}` is to ease and speed up the creation of reports following the [CCCM brand identity](https://www.cccmcluster.org/branding-collection).
## Installation
Get started by installing the `{cccmdown}` package from GitHub using the `{pak}` library:
```{r install, eval=FALSE}
# If pak is not yet installed, uncomment the following line:
# install.packages("pak")
pak::pkg_install("unhcr-dataviz/cccmdown")
```
## Usage
The `{cccmdown::paged_report}` template is designed for R Markdown projects, simply put the following code in your R Markdown header. For example:
```yaml
---
title: "CCCM report"
date: "`r format(Sys.Date(), '%d %B %Y')`"
output:
cccmdown::paged_report:
coord_mec: "cluster"
country: "Country name"
---
```
You can also open a `{cccmdown::paged_report}` template using **RStudio**:
1. Click the "File" menu then "New File" and choose "R Markdown".
2. In the "From Template" tab, choose the **CCCM Paged** built-in template.
## Acknowledgements
We extend our gratitude to the creators of the [`{pagedown}`](https://github.com/rstudio/pagedown) package that influenced the development of `{cccmdown}`.
## Contribution
Contributions to `{cccmdown}` are highly valued. If you have suggestions, uncover bugs, or envision new features, kindly submit an [issue on GitHub](https://github.com/unhcr-dataviz/cccmdown/issues). To contribute code, don't hesitate to fork the repository and create a pull request.
## License
This package is distributed under the [MIT License](https://github.com/unhcr-dataviz/cccmdown/blob/master/LICENSE.md).