I'm using R markdown in a Rpres file, in RStudio.
I understand that this is using reveal.js, which can do vertical slides.
What markdown do I need to type to get it to create a vertical slide? All my attempts so far (--
, ---
, type:subsection
) still result in a simple set of horizontal slides and only left right navigation
To create a new R Presentation you execute the New File -> R Presentation command: After specifying the location to save the presentation, a new presentation will be created and a preview will show within the Presentation tab in the upper right corner of the IDE.
(informal) Tending to slide or cause sliding; slippery.
Ok, this is a bit old at this point, but for the sake of completeness:
If you install the revealjs package:
library(devtools)
install_github("jjallaire/revealjs")
# or "srvanderplas/revealjs" if you want slide numbers by default
and use
title: "Awesome revealjs presentation"
author: "Your name"
output:
revealjs::revealjs_presentation:
pandoc_args: [ "--slide-level", "2" ]
in your preamble
then H1 (# in markdown) will make a new top-level slide, and H2 (## in markdown) will make a new vertical slide under a top-level slide.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With