Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Produce handouts of slidify or Rpres HTML5 presentations

I would like to give my audience handouts of my HTML5 presentation created by slidify or Rstudio's R presentations. Any suggestions?

like image 975
Jonas Tundo Avatar asked Sep 17 '13 07:09

Jonas Tundo


1 Answers

1) Install the software pandoc: http://johnmacfarlane.net/pandoc/installing.html

2) Install the stoftware MikTex (Windows): http://miktex.org/download

3) Install the R package knitr

install.packages("knitr")

4) The following only worked after I restarted my PC (Windows)

# Load packages
library("knitr")

# Check if pandoc is found on your system
system("pandoc -v")

# Set working directory, e.g.: 
# setwd("C:/r_files")

# Convert mark-up file
pandoc('p4.Rpres', format='latex') # PDF
pandoc('p4.Rpres', format='docx') # DOCX

During the execution of the latter command multiple pop-ups were shown saying that MikTex needs to install specfic add-ons to process the command. You have to confirm this to proceed.

For more details see: http://yihui.name/knitr/demo/pandoc/

like image 126
majom Avatar answered Sep 28 '22 22:09

majom