Description Usage Arguments Details Value Examples
View source: R/newPresentation.R
Creates a new instance of a presentation. Currently it has only one method:
start
which is called without any arguments. It starts a presentation
or resumes where you left off. A presentation runs inside your R console and
the idea is to maximize the window on your screen for a presentation mode.
1 2 3 4 | newPresentation(fileName, width = NULL, height = NULL, border = "*",
padding = 1, slideSep = rep("", 3))
introPresentation()
|
fileName |
(character) the file containing the presentation. Currently one of: .Rmd, md, or plain. |
width |
(integer) the number of columns to use. By default:
|
height |
(integer) the number of rows to use. By default set to 22. |
border |
(character) the character used as a border to frame a single slide. |
padding |
(integer) the number of white-spaces / empty rows between border and content. |
slideSep |
(character) the slide separator: how to determine a 'slide break'. |
To convert from Rmd to md formats knitr::knit
is used. To convert from
md to plain knitr::pandoc(file, format = "plain")
is used. If you
want to configure the process of this conversion please see the
documentation of these two functions.
For navigation inside the presentation mode, please see the examples below. Or start a presentation and type 'h' for help.
The function returns an instance of the presentation. It has only one
method: start
without any arguments. start
will start the
presentation and also resume where you left.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
## Start with the example:
introPresentation() # in presentation mode type 'h'
## The same presentation but with manual configuration:
file <- system.file("Introduction.Rmd", package = "REPLesentR")
myPresentation <- newPresentation(
file, width = 80, height = 23, border = "O", padding = 1)
myPresentation$start()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.