Package 'unhcrdown'

Title: UNHCR Templates for R Markdown
Description: Produce documents compliant with UNHCR brand identity.
Authors: Cedric Vidonne [aut, cre], Ahmadou Dicko [aut], Edouard Legoupil [aut], UNHCR [cph]
Maintainer: Cedric Vidonne <[email protected]>
License: MIT + file LICENSE
Version: 0.0.4.9000
Built: 2024-06-23 02:18:21 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


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


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


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

A pagedown report


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

A pagedown report


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