Package 'unhcrdown'

Title: UNHCR Branded Templates for R Markdown Documents
Description: 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.
Authors: Cédric Vidonne [aut, cre], Ahmadou Dicko [aut], Edouard Legoupil [aut], UNHCR [cph]
Maintainer: Cédric Vidonne <[email protected]>
License: MIT + file LICENSE
Version: 0.5.9000
Built: 2025-01-03 12:36:30 UTC
Source: https://github.com/unhcr-dataviz/unhcrdown

Help Index


Convert to UNHCR branded Word document

Description

Format for converting from R Markdown to an UNHCR branded Word simple document

Usage

docx_simple(...)

Arguments

...

extra parameters to pass to officedown::rdocx_document

Value

An R Markdown output format.


Convert to UNHCR branded HTML website

Description

Format for converting from R Markdown to an UNHCR branded HTML website

Usage

html_page(...)

Arguments

...

extra parameters to pass to rmarkdown::html_document

Value

An R Markdown output format.


Convert to UNHCR branded HTML presentation

Description

Format for converting from R Markdown to an UNHCR branded HTML presentation

Usage

html_slides(other_css = NULL, ...)

Arguments

other_css

Add extra css

...

extra parameters to pass to xaringan::moon_reader

Value

An R Markdown output format.


Function for UNHCR paged report template

Description

Function for UNHCR paged report template

Usage

paged_report(
  front_img = NULL,
  img_to_dark = FALSE,
  other_css = NULL,
  toc = TRUE,
  toc_depth = 2,
  number_sections = FALSE,
  ...
)

Arguments

front_img

Cover image

img_to_dark

Darken cover image

other_css

Add extra css

toc

Table of content

toc_depth

Table of content depth

number_sections

Number section headings

...

Arguments passed to pagedown::html_paged

Value

An R Markdown output format.


Function for UNHCR paged simple template

Description

Function for UNHCR paged simple template

Usage

paged_simple(back_html = TRUE, other_css = NULL, number_sections = FALSE, ...)

Arguments

back_html

Back-cover HTML including contact information

other_css

Add extra css

number_sections

Number section headings

...

Arguments passed to pagedown::html_paged

Value

An R Markdown output format.


Convert to UNHCR branded Powerpoint presentation

Description

Format for converting from R Markdown to an UNHCR branded Powerpoint presentation

Usage

pptx_slides(...)

Arguments

...

extra parameters to pass to officedown::rpptx_document

Value

An R Markdown output format.