text_reveal: text_reveal

Description Usage Arguments Value Examples

View source: R/g_exported_functions.R

Description

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

Usage

1
2
3
4
5
6
7
8
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

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

flipbookr documentation built on May 31, 2021, 5:10 p.m.