create_yaml: Create the xaringan YAML Front Matter

Description Usage Arguments

View source: R/write_yaml.R

Description

Create the xaringan YAML Front Matter

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
create_yaml(
  xml_folder,
  title_sld,
  author = NULL,
  title = NULL,
  sub = NULL,
  date = Sys.Date(),
  theme = "default",
  highlightStyle = "github"
)

Arguments

xml_folder

The folder containing all of the xml code from the pptx.

title_sld

The xml code for the title slide in the pptx.

author

Optional string indicating the author or authors of the slide. Defaults to the listed creator of the pptx.Multiple authors can be provided with a string vector.

title

Optional title of the slide deck. Defaults to the title of the first slide in the deck.

sub

Optional subtitle

date

The date the slides were produced. Defaults to current date.

theme

The css theme to apply to the xaringan slides. For options, see here. Note that only the name of the theme needs to be applied (e.g., theme = "metropolis") and the proper code will be applied to load both the theme and the fonts, although this can easily be manually manipulated after conversion if you want other fonts with a specific theme.

highlightStyle

The code highlighting style. Defaults to "github" flavored highlighting


datalorax/slidex documentation built on Oct. 31, 2020, 9:17 a.m.