# Prerequisites

Make sure you have installed the latest version of R and the Preview Release of RStudio.

The following packages should be installed. If you have them already make sure they are updated. The most up to date versions are the “in development” versions from gitHub.

# Installing packages needed to properly run bookdown

devtools::install_github("rstudio/bookdown")
install.packages("knitr")
install.packages("rmarkdown")
install.packages("rsconnect")

Do you have Pandoc installed? RStudio should come along with Pandoc.

# Pandoc

rmarkdown::pandoc_available()
## [1] TRUE
rmarkdown::pandoc_version()
## [1] '1.17.2'

and latex ? ( if you want to have PDF outputs as well) note that PDF does not allow interactive plots

system("pdflatex --version")

If you do not have latex installed

Mac OS X –> MacTeX (http://www.tug.org/mactex/)

Linux users –> TeXLive (http://www.tug.org/texlive).