In the shell:
git clone https://github.com/hadley/adv-r.git
gem install jekyll mime-types
In R:
install.packages(c("rcpp", "rjsonio", "knitr", "ggplot2", "png", "lubridate", "yaml", "microbenchmark", "dplyr", "plyr", "stringr", "memoise", "inline", "fastmatch"))
devtools::install_github(c("hadley/pryr", "hadley/lineprof", "yihui/knitr", "rstudio/rmarkdown", "hadley/bookdown"))
Now back in the shell:
cd adv-r
jekyll build
This should have created a directory _site
. You can now create an ebook using Calibre by adding the _site/index.html
file (calibre should automatically follow all the links to the other pages in the directory) and converting it to Epub.