md_header: Create 'markdown' header from 'yaml' string

View source: R/yaml_utils.R

md_headerR Documentation

Create markdown header from yaml string

Description

This function wraps a yaml-formatted string in Markdown header delimiters.

Usage

md_header(x)

Arguments

x

(character) yaml formatted string.

Examples

library(yaml)
yaml_quoted <- getFromNamespace("yaml_quoted", "teal.reporter")
yaml <- list(
  author = yaml_quoted("NEST"),
  title = yaml_quoted("Report"),
  date = yaml_quoted("07/04/2019"),
  output = list(pdf_document = list(keep_tex = TRUE))
)
md_header <- getFromNamespace("md_header", "teal.reporter")
md_header(as.yaml(yaml))

teal.reporter documentation built on April 3, 2025, 7:39 p.m.