R Weekly 2017-35 Magic Purrr, GOT, Review Packages



R in the Real World

Why Can’t I Remember Game of Thrones Characters? An Analysis in R

Perceptions of Probability and Numbers

More things with the New Zealand Election Study

Videos and Podcasts

  • NSSD 44 - She Won the Battle - Hilary and Roger continue the discussion about whether good data analysis can lead to bad outcomes, talk about private cloud servers, and discuss whether data represent ground truth.

R in Organizations


New Packages

📦 Go Live for More New Pkgs 📦

  • dataMaid - Your personal assistant for cleaning up the data cleaning process

  • visdat - A tool for preliminary visualisation of whole dataframes

  • naniar - Data Structures, Summaries, and Visualisations for Missing Data

  • skpr - An open source design of experiments suite for generating and evaluating optimal designs in R

Package Releases


Using purrr to refactor imperative code

#10: Compacting your Shared Libraries, After The Build

R Project Updates

Updates from R Core:

  • Reverted unintended change in behavior of return calls in on.exit expressions introduced by stack unwinding changes in R 3.3.0.

  • approx(), spline(), splinefun() and approxfun() also work for long vectors.

  • deparse() (and dump()) are more useful for S4 objects; dput() now using the same internal C code (instead of its previous imperfect workaround R code). More user visibly, dput(), etc now print the names() information only once, using the more readable (tag = value) syntax. These functions got a new (partly experimental) control option via .deparseOpts() "nice_names" which when set (e.g. as part of "all") also use the (tag = value) syntax for atomic vectors.

  • (1:n)[-n] no longer segfaults for n <- 2.2e9 (on a platform with enough RAM).

  • package.skeleton() gets optional encoding argument.

  • Internal C-level R_check_class_and_super() and hence R_check_class_etc() now also consider non-direct super classes and hence return a match in more cases. This e.g., fixes behaviour of derived classes in package Matrix

Upcoming Events

  • RStudio conf 2018 January 31 to February 3
    rstudio::conf is about all things R and RStudio! Register & More infos

  • R/Finance 2018 June 1 and 2
    Applied Finance with R. More info

  • useR! 2018 July 10, 2018
    The annual useR! conference is the main meeting of the international R user and developer community.

More past events at R conferences & meetups.

Your support will keep R Weekly team moving! 💡

Quotes of the Week