Brett Klamer

Compile Hadley’s Advanced R to a PDF

Hadley Wickham's book, Advanced R, is published through Chapman and Hall. The source is available on GitHub and a version compiled for the web is at http://adv-r.had.co.nz/. Even though the HTML format is nice, I still like to have a PDF around. Here’s how to compile it from the source. (Please consider buying a copy to support his work.)

Download the Source

Extract to your folder of choice. https://github.com/hadley/adv-r/archive/master.zip

Install R Package Dependencies

# Check error messages for needed cran packages. Development packages are 
# mentioned below.
devtools::install_github("hadley/sloop")
devtools::install_github("hadley/emo")

Compile the book

bookdown::render_book("index.Rmd", output_format = "bookdown::pdf_book")

Last updated 2017-12-02