Skip to content
Advanced R: a book
TeX CSS R Other
Branch: master
Clone or download

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
diagrams Fix wonky arrows Jan 29, 2019
emoji Functionals proof reading Oct 28, 2018
latex Update dedication Apr 4, 2019
screenshots Bring back memory profiling with good example Dec 19, 2018
www Improve www .gitignore Jan 23, 2017
.Rbuildignore Add code of conduct Dec 10, 2018
.gitignore Update code to generate book zip May 24, 2019
.mailmap Include all contributors in intro May 28, 2014
.travis.yml Trying R-devel once more Dec 21, 2018
Big-picture.Rmd Typo, deleting unnecessary "to" (#1558) Jun 29, 2019
C-interface.Rmd Move inline more prominently into code (#1544) May 28, 2019
CODE_OF_CONDUCT.md Actually check in code of conduct Dec 10, 2018
CONTRIBUTING.md Update contributing Sep 15, 2017
Conditions.Rmd Added a missing "to" (#1537) Oct 21, 2019
Connections.Rmd Spellchecking A-E Dec 12, 2018
Control-flow.Rmd Typo in Control-flow.Rmd (#1572) Aug 29, 2019
DESCRIPTION Use dev bookdown May 24, 2019
Debugging.Rmd Fix typo (#1542) May 24, 2019
Environments.Rmd Adds corrections Mar 11, 2019
Environments.tex Typo. enviroment to environment Jun 27, 2015
Evaluation.Rmd Small error in example, Section 20.3.2 (#1576) Oct 21, 2019
Expressions.Rmd Global changes (#1526) Mar 26, 2019
FP-whole-game.Rmd Fix a few more old-style crossrefs Dec 13, 2018
FP.Rmd Adds hyphen to "object oriented" (#1500) Mar 13, 2019
Foundations.Rmd Global changes (#1526) Mar 26, 2019
Function-factories.Rmd Fix more long lines Apr 11, 2019
Function-operators.Rmd Typo in Function operators (#1574) Sep 6, 2019
Functionals.Rmd Change output vector initialization (#1614) May 17, 2020
Functions.Rmd Fix typo in Promises Oct 2, 2019
Introduction.Rmd A couple of page breaks Mar 26, 2019
LICENSE.md Clarify license of book and code Dec 10, 2018
Makevars WS Mar 10, 2018
Meta.Rmd Global changes (#1526) Mar 26, 2019
Names-values.Rmd Update Names-values.Rmd (#1555) Jun 25, 2019
OO-tradeoffs.Rmd Edits for index Mar 18, 2019
OO.Rmd Update OO.Rmd (#1582) Oct 23, 2019
Perf-improve.Rmd Use `selectMethod` instead of `getMethod` (#1565) Oct 21, 2019
Perf-measure.Rmd Update Perf-measure.Rmd (#1550) Jun 1, 2019
Preface.Rmd Minor language tweak / typos (#1613) May 10, 2020
Quotation.Rmd Typo in quasiquotation (#1569) Oct 21, 2019
R6.Rmd forgot word (#1520) Mar 18, 2019
README.md Update code to generate book zip May 24, 2019
Rcpp.Rmd Update URL for Rcpp example (#1535) Oct 21, 2019
References.Rmd Don't need extra references section for printed book Dec 26, 2018
S3.Rmd Update S3.Rmd (#1583) Oct 23, 2019
S4.Rmd make `is` example clearer (#1591) Jan 7, 2020
Subsetting.Rmd Fix minor typo (#1586) Oct 30, 2019
Techniques.Rmd Global changes (#1526) Mar 26, 2019
Translation.Rmd
Vectors.Rmd Fix minor typo. (#1585) Oct 30, 2019
_bookdown.yml Rename big picture chapter filename Dec 31, 2018
_output.yml Add google analytics May 31, 2019
adv-r.Rproj Convert to bookdown Jan 26, 2017
adv-r.css Re-instate code block margins Jan 29, 2019
arrange-html.png Reduce image size Aug 23, 2013
base-types.Rmd Fix SEXPTYPE typos (#1557) Jun 27, 2019
beyond-exception-handling.Rmd More spelling Dec 13, 2018
book.bib Adds corrections Mar 14, 2019
common.R Tweak error display Jan 29, 2019
contribute.Rmd More spelling Dec 13, 2018
contributors.csv Update contributors Mar 26, 2019
cover.png Update links to 2nd edition Mar 26, 2019
debugging.R Polish debugging Dec 19, 2018
dsl-html-attributes.r Use rlang in DSLs Jan 29, 2018
emoji.R Latex emoji embedding strategy Oct 9, 2018
ga_script.html Add google analytics May 31, 2019
index.Rmd
krantz.cls Experiment with @yihui's CRC template Aug 14, 2018
memory-read-delim.r Finishing up perf measurements Dec 18, 2018
mina.jpg Dedicate the book to Mina Dec 26, 2018
profiling-example.R Changes from reviewer May 20, 2014

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.

To zip files to for publisher:

mkdir crc
cp _book/_main.tex crc
cp -r _bookdown_files/*_files crc
cp -r diagrams crc
cp -r screenshots crc
cp -r emoji crc
cp mina.jpg crc
cp krantz.cls crc
cp book.bib crc
rm crc/diagrams/*.graffle

zip -r adv-r-source.zip crc

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.