text_reveal {flipbookr}R Documentation

text_reveal

Description

Function takes character string, splits it based on delimiter, and returns each element of the resultant vector on its own slide

Usage

text_reveal(
  text,
  sep = "   ",
  md_prefix = "#",
  sep_replace = "",
  slide_break = "---",
  class = "class: inverse, middle, center"
)

Arguments

text

a character string to be split and delivered piece-wise to a slide

sep

a character string to delimit the split of the input text

md_prefix

a character string prefix to each markdown element, defaults to "#"

sep_replace

a character string that will replace the delimiter, defaults to empty string ""

slide_break

a character string containing slide break characters, defaults to "—" for xaringan slideshows

class

a character string in which you can set the class, defaults to "class: inverse, middle, center"

Value

knit text to be interpreted as slides

Examples

text_reveal("Hello world", sep = " ")

[Package flipbookr version 0.1.0 Index]