text_reveal: Function takes character string, splits it based on...

View source: R/g_exported_functions.R

text_revealR Documentation

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

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 = " ")

EvaMaeRey/flipbookr documentation built on Nov. 19, 2023, 1:46 p.m.