I would like to give my audience handouts of my HTML5 presentation created by slidify or Rstudio's R presentations. Any suggestions?
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/
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