html_slides: Convert to UNHCR branded HTML presentation

View source: R/html_slides.R

html_slidesR Documentation

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.

Examples

## Not run: 
# Requires pandoc

# Create an R Markdown example file
rmd_content <- "---
 title: 'Example UNHCR HTML Slides'
 output: unhcrdown::html_slides
 ---

 ## Introduction

 This is an example of a UNHCR-branded HTML slides created using `unhcrdown::html_slides`.
 "

# Write the R Markdown content to a file
example_file <- tempfile(fileext = ".Rmd")
writeLines(rmd_content, example_file)

# Render the R Markdown file
rmarkdown::render(example_file,
  output_format = unhcrdown::html_slides(),
  output_dir = tempdir()
)

# View the rendered HTML file
browseURL(render_file)

## End(Not run)

unhcrdown documentation built on April 3, 2025, 10:49 p.m.