close
The Wayback Machine - https://web.archive.org/web/20190322180631/https://github.com/hadley/adv-r
Skip to content
Image
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
Advanced R: a book
Branch: master
Clone or download
Cannot retrieve the latest commit at this time.
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Image diagrams
Image emoji
Image latex
Image screenshots
Image www
Image .Rbuildignore
Image .gitignore
Image .mailmap
Image .travis.yml
Image Big-picture.Rmd
Image C-interface.Rmd
Image CODE_OF_CONDUCT.md
Image CONTRIBUTING.md
Image Conditions.Rmd
Image Connections.Rmd
Image Control-flow.Rmd
Image DESCRIPTION
Image Debugging.Rmd
Image Environments.Rmd
Image Environments.tex
Image Evaluation.Rmd
Image Expressions.Rmd
Image FP-whole-game.Rmd
Image FP.Rmd
Image Foundations.Rmd
Image Function-factories.Rmd
Image Function-operators.Rmd
Image Functionals.Rmd
Image Functions.Rmd
Image Introduction.Rmd
Image LICENSE.md
Image Makevars
Image Meta.Rmd
Image Names-values.Rmd
Image OO-tradeoffs.Rmd
Image OO.Rmd
Image Perf-improve.Rmd
Image Perf-measure.Rmd
Image Preface.Rmd
Image Quotation.Rmd
Image R6.Rmd
Image README.md
Image Rcpp.Rmd
Image References.Rmd
Image S3.Rmd
Image S4.Rmd
Image Subsetting.Rmd
Image Techniques.Rmd
Image Translation.Rmd
Image Vectors.Rmd
Image _bookdown.yml
Image _output.yml
Image adv-r.Rproj
Image adv-r.css
Image arrange-html.png
Image base-types.Rmd
Image beyond-exception-handling.Rmd
Image book.bib
Image common.R
Image contribute.Rmd
Image contributors.csv
Image cover.png
Image debugging.R
Image dsl-html-attributes.r
Image emoji.R
Image index.Rmd
Image krantz.cls
Image memory-read-delim.r
Image mina.jpg
Image profiling-example.R

README.md

Advanced R

Build Status

This is code and text behind the Advanced R book. The site is built with bookdown.

Diagrams

Omnigraffle:

  • Make sure that 100% is "one postscript point": this ensures canvas size matches physical size. Export at 300 dpi scaled to 100%.

  • Set grid to 1cm with 10 minor units. Ensure there is 2mm padding around all sides of each diagram.

  • Conventions:

    • Text is set in inconsolata 10pt, with text padding set to 3.
    • Emoji set in "Apple Color Emoji" 8pt.
    • Default scalar size is 6mm x 6mm.
    • Symbols have 4pt rounded corners and plum border.
    • Arrow heads should be set to 75%.
    • Names should be coloured in steel.

Book:

  • Inconsolata scaled (by fontspec) to match main font is 9.42pt.

  • Preview at 100% matches physical size of book. Maxiumum diagram width is 11cm.

RMarkdown

  • Remove dpi specification from include_graphics(), instead relying on common.R. Chunk should have output.width = NULL.

  • Beware caching: after changing the size of an image you may need to clear the cache before it is correctly updated.

Code of conduct

Please note that Advanced R is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

You can’t perform that action at this time.