-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathREADME.Rmd
107 lines (77 loc) · 3.57 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
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%"
)
```
# unhcrdown <a href="https://github.com/unhcr-dataviz/unhcrdown"><img src='man/figures/unhcrdown_sticker.png' align="right" width="140" alt="unhcrdown package hex sticker" /></a>
<!-- badges: start -->
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![R-CMD-check](https://github.com/unhcr-dataviz/unhcrdown/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/unhcr-dataviz/unhcrdown/actions/workflows/R-CMD-check.yaml)
<!-- [![CRAN status](https://www.r-pkg.org/badges/version/unhcrdown)](https://CRAN.R-project.org/package=unhcrdown) -->
<!-- badges: end -->
Streamline your document creation process with the `{unhcrdown}` R package. It provides a comprehensive set of templates designed to align your reports and presentations with **UNHCR's brand guidelines**. This package offers ready-to-use R Markdown templates for various document types, ensuring consistent UNHCR visual identity across your communications.
## Features
- A collection of professional templates following UNHCR brand guidelines
- Ready-to-use formats for reports, presentations, and websites
- Easy-to-use functions that work seamlessly with R Markdown
- Consistent styling across all document types
## Installation
Get started by installing the development version from GitHub with:
```{r, eval = FALSE}
# If pak is not yet installed, uncomment the following line:
# install.packages("pak")
pak::pkg_install("unhcr-dataviz/unhcrdown")
```
## Usage
The `{unhcrdown}` templates are designed for R Markdown projects, any of the available format can simply be added to `output` parameter of the R Markdown `yaml` header. For example:
```{yaml}
---
title: "UNHCR Branded Report"
author: "First Last Name"
date: "`r Sys.Date()`"
output: unhcrdown::paged_report
---
```
### Available Formats
- **PDF Reports**: Two HTML to PDF options:
```{yaml}
output: unhcrdown::paged_report # Full template with cover
# or
output: unhcrdown::paged_simple # Streamlined version
```
- **Word Documents**: Professional reports using `officedown::rdocx_document`
```{yaml}
output: unhcrdown::docx_simple
```
- **PowerPoint**: Presentation slides
```{yaml}
output: unhcrdown::pptx_slides
```
- **HTML Slides**: Web presentations
```{yaml}
output: unhcrdown::html_slides
```
- **HTML Page**: Web based documents
```{yaml}
output: unhcrdown::html_page
```
### RStudio Integration
Create new documents directly from RStudio:
1. File → New File → R Markdown
2. Select "From Template"
3. Choose any `{unhcrdown}` template
```{r child="man/rmdfragments/unhcr_tools.Rmd"}
```
## Acknowledgements
We extend our gratitude to the creators of the [`pagedown`](https://github.com/rstudio/pagedown) package that influenced the development of `unhcrdown`.
## Contribution and Code of Conduct
Contributions to `{unhcrdown}` are highly valued. To ensure a welcoming and inclusive community, we follow our [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). If you have suggestions, uncover bugs, or envision new features, kindly submit an [issue on GitHub](https://github.com/unhcr-dataviz/unhcrdown/issues).
## License
This package is distributed under the [MIT License](https://github.com/unhcr-dataviz/unhcrdown/blob/master/LICENSE.md).