Book and package: Learn R …as you learnt your mother tongue

Book cover
Book cover

Book draft of 2017-05-14 and ‘learnrbook’ package 0.0.2.

My book titled Learn R …as you learnt your mother tongue is gradually approaching completion, but the text is not yet polished. Today’s milestone is that the first version of the companion R package has been accepted for distribution through CRAN.

In the draft version I uploaded today, published as earlier ones through Leanpub, approximately 95% of the book content is included. Today’s version differs from earlier ones in that as now the original datasets and files used in examples are now in package ‘learnrbook’, the example code has been edited to make use of it. The package is since yesterday in CRAN. The updated version of the book also tracks improvements in version 0.2.15 of my package ‘ggpmisc’, which is since today in CRAN.

The PDF of this updated draft of the book is available at for whatever price you would like to pay for it (including for free). However, paying even as little as 1€ for your copy would go a long way towards supporting the expenses of running this web site.

ggpmisc 0.2.15 (CRAN release)

Changes from the previous CRAN release 0.2.14 are:
Add stat_fit_tidy() which makes it possible to add labels or equations with estimated parameter values embedded. To build complex equations familiarity with R’s expressions as described under plotmath will be of help. This statistic supports all the types of models supported by package ‘broom’, which is used internally.

Update documentation.

NOTE: This version of the package is available through CRAN. Documentation website is at


R 3.4.0 released

R 3.4.0 was released some days ago. A compatibility update to RStudio is also available.

The repositories at this site and obviously also at CRAN now contain package binary distributions for R 3.4.x and R 3.3.x.

One major change in this release is that the JIT (just in time) compiler is enabled by default. I have not done any benchmarking yet.

I have written a page explaining how to upgrade your R installation.

The code examples in my book Learn R …as you learnt your mother tongue continue to work as expected. However not all the package updates for R 3.4.0 are yet in CRAN. In package ‘gganimate’ function gg_animate() has been renamed gganimate().

The code examples in our book R for Photobiology: Theory and recipes for common calculations run without problems. Due to recent updates to the packages in my R for Photobiology Suite, used in the book examples, fewer warnings than earlier are triggered.