Data lunch 2feb: The use of Bookdown to write documents and reports
Gabriel Muñoz
Instituut voor Biodiversiteit en Ecosysteem Dynamica (IBED)2017-02-03
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
install.packages("devtools") # Install devtools first to download github versions
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).
See https://www.latex-project.org/get/ for more information about LaTeX and its installation.
This document is under the creative commons license Attribution-NonCommercial-ShareAlike 4.0 International↩