Site icon R-bloggers

Generate simple HTML slides using deck.js and markdown

[This article was first published on Category: R | Huidong Tian's Blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

RStudio and knitr are an excellent conbination for generating dynamic reports. But in this blog, I will show you how to generate HTML-style presentaion using R only. < !--more-->

OK, I confess that we still need something else: deck.js and markdown and R.utils.

The idea is simple:

  1. Create an empty folder, such like “C:/demo”;
  2. Copy the deck.js folder to the above directory. “C:/demo/deck.js”
  3. Create an empty ASCII format file, ending with .md, which is the main file containing the contexts which will be presented.
  4. Convert the markdown file to html format using the function markdownToHTML in R-package markdown.
  5. Insert the above html file into the template for deck.js presentaion.

< notextile>
htmlSlide Demo htmlSlide1.0.zip
1
2
3
4
5
install.packages(“c:/download/htmlSlide_1.0.zip”)
library(htmlSlide)
htmlSlide(file = “demo”)</p>

<p>

This is an simple example. The source file can be downloaded here.

To leave a comment for the author, please follow the link and comment on their blog: Category: R | Huidong Tian's Blog.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.