Skip to contents

Convert a robodeck_section_titles object to a character vector of section titles (removing the "minutes" component).

Usage

extract_section_titles(section_titles)

Arguments

section_titles

A robodeck_section_titles object.

Value

A character vector of section titles.

Examples

# gen_deck_section_titles() returns an object that contains both the section
# titles and their anticipated length.

section_titles_object <- list(
  list(title = "Slide 1", minutes = NULL),
  list(title = "Slide 2", minutes = NULL),
  list(title = "Slide 3", minutes = NULL)
)
extract_section_titles(section_titles_object)
#> [1] "Slide 1" "Slide 2" "Slide 3"