View source: R/golem_utils_ui.R
theme_light | R Documentation |
#' Include Content From a File #' #' Load rendered RMarkdown from a file and turn into HTML. #' #' @rdname includeRMarkdown #' @export #' #' @importFrom rmarkdown render #' @importFrom markdown markdownToHTML #' @importFrom htmltools HTML includeRMarkdown <- function(path)
md <- tempfile(fileext = '.md')
on.exit(unlink(md),add = TRUE)
rmarkdown::render( path, output_format = 'md_document', output_dir = tempdir(), output_file = md,quiet = TRUE )
html <- markdown::markdownToHTML(md, fragment.only = TRUE)
Encoding(html) <- "UTF-8"
return(HTML(html))
theme_light()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.