new_slide: Create a new slide in the middle of a knitr chunk

Description Usage Arguments Value

View source: R/new_slide.R

Description

Thanks to Yihui Xie for this solution: https://stackoverflow.com/a/59182060/1129889.

Usage

1
new_slide(title = "  {.nopagenumberincrement .previoustitle}")

Arguments

title

The title of the new slide

Value

An object a class named knit_asis, so that 'knitr“ will treat it as is (the effect is the same as the chunk option ‘results = ’asis'') when it is written to the output.


richarddmorey/RcompileSlides documentation built on April 17, 2020, 3:24 a.m.