..article: file
import landslide class MyMacro(Macro): def process(self, content, source=None): return content + '<p>plop</p>', ['plopped_slide'] g = generator.Generator(source='toto.md') g.register_macro(MyMacro) print g.render()
..article: fill
require(lattice); require(latticeExtra) trellis.par.set(theme = theEconomist.theme(box = 'transparent')) lattice.options(theEconomist.opts())
require(ggplot2) qplot(wt, data = mtcars, binwidth = I(1)) + xlab('Weight of Car (lb)') + ylab('Miles Per Gallon')
..article: fill
qplot(waiting, data = faithful)
require(googleVis); require(hwriter) pie1 <- gvisPieChart(CityPopularity) print(pie1, 'chart')
..article: fill
The objective of slidify is to make it super easy for a HTML novice to generate crisp looking HTML5 presentations, while at the same time providing options for the power user to customize the look and feel of the slides.
The source file is written in R Markdown. It is transformed into an HTML5 slide deck using a set of mustache templates and R packages whisker and markdown.
At the heart of it is the function slidify. The arguments accepted by Rmd2html are:
input Source file in R markdownframework Slide framework to use. The HTML5 frameworks currently supported by Rslides are deck.js, dzslides, html5slides and shower. The plan is to add more frameworks over time to create a richer set of options for users.highlight Syntax highlighter to use. Currently supports using highlight package from R or highlight.jshistyle Highlighting style to use.theme Theme to be used for the presentation. Currently this option is only supported for deck.js. transition Transition to use between slides. Currently this option is only supported for deck.js.Please consult deck.js documentation for further details on supported themes and transitions
slidify is designed to make it very easy for a HTML novice to generate a crisp, visually appealing HTML5 slide deck. You can do it in just three steps!
---slidify("slides.Rmd") to generate your slide deck.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.