I have some large code chunks that exceed the length of one slide. I want the code to easily split across two slides. This comes up when I want to display a large function that I can't easily split across two R code chunks. I also regularly print my slides to pdf for later annotation, so the scrollable code isn't helpful.
Is there any straightfoward way to do this?
I tried adding something like knitr::asis_output("\n\n---\n\n")
into an R code chunk to manually add the slide break, following Inserting a slide break within a code chunk in rmarkdown
but this didn't work.