html_page | R Documentation |
Format for converting from R Markdown to an UNHCR branded HTML website
html_page(...)
... |
extra parameters to pass to |
An R Markdown output format.
## Not run:
# Requires pandoc
# Create an R Markdown example file
rmd_content <- "---
title: 'Example UNHCR HTML Page'
output: unhcrdown::html_page
---
## Introduction
This is an example of a UNHCR-branded HTML page created using `unhcrdown::html_page`.
"
# 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_page(),
output_dir = tempdir()
)
# View the rendered HTML file
browseURL(render_file)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.