https://github.com/unhcr-dataviz/cccmdown
CCCM branded report template
https://github.com/unhcr-dataviz/cccmdown
pagedown rmarkdown rmarkdown-template
Last synced: 3 months ago
JSON representation
CCCM branded report template
- Host: GitHub
- URL: https://github.com/unhcr-dataviz/cccmdown
- Owner: unhcr-dataviz
- License: other
- Created: 2023-09-14T13:37:31.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-09T12:09:44.000Z (over 2 years ago)
- Last Synced: 2023-10-09T13:28:58.775Z (over 2 years ago)
- Topics: pagedown, rmarkdown, rmarkdown-template
- Language: SCSS
- Homepage:
- Size: 146 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# cccmdown
[](https://www.repostatus.org/#wip)
[](https://github.com/unhcr-dataviz/cccmdown/actions/workflows/R-CMD-check.yaml)
[](https://CRAN.R-project.org/package=unhcrthemes)
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).