UNHCR Branded Templates for R Markdown Documents

Create United Nations High Commissioner for Refugees (UNHCR) branded documents, presentations, and reports using R Markdown templates. This package provides customized formats that align with UNHCR's official brand guidelines for creating professional PDF reports, Word documents, PowerPoint presentations, and HTML outputs.


unhcrdown unhcrdown package hex sticker

Lifecycle:stable R-CMD-check

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:

# 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:

---
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:

    output: unhcrdown::paged_report  # Full template with cover
    # or
    output: unhcrdown::paged_simple  # Streamlined version
    
  • Word Documents: Professional reports using officedown::rdocx_document

    output: unhcrdown::docx_simple
    
  • PowerPoint: Presentation slides

    output: unhcrdown::pptx_slides
    
  • HTML Slides: Web presentations

    output: unhcrdown::html_slides
    
  • HTML Page: Web based documents

    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

Additional UNHCR Tools

Acknowledgements

We extend our gratitude to the creators of the 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. If you have suggestions, uncover bugs, or envision new features, kindly submit an issue on GitHub.

License

This package is distributed under the MIT License.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("unhcrdown")

0.6.0 by Cédric Vidonne, 2 years ago


https://github.com/unhcr-dataviz/unhcrdown, https://unhcr-dataviz.github.io/unhcrdown/


Report a bug at https://github.com/unhcr-dataviz/unhcrdown/issues


Browse source code at https://github.com/cran/unhcrdown


Authors: Cédric Vidonne [aut, cre] , Ahmadou Dicko [aut] , Edouard Legoupil [aut] , UNHCR [cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports bslib, magick, officedown, pagedown, rmarkdown, xaringan

Suggests fontawesome, knitr


See at CRAN