Mon, Dec 11, 2017

Data Rectangling with jq

“Data rectangling”: the process of turning highly nested data structures (e.g. JSON, XML) into a tabular format. Data rectangling is a brilliant turn of phrase coined by Jenny Bryan (UBC, RStudio) and leader in the #rstats community. Recording or slides of Jenny’s talk on the subject give a much better intro to the idea and working with this in R, particularly through the purrr package.

Sat, Dec 9, 2017

JSON-LD Vita exploration

Using JSON Queries (JQ) Pure JSON vita <- readr::read_file("../../static/js/vita.json") jq(vita, '."@reverse".author[] | { year: .dateCreated, author: .author[] | [.givenName, .familyName] | join(" ") }') %>% combine() %>% fromJSON() year author 2017-12-09 Wayne M. Getz 2017-12-09 Charles R. Marshall 2017-12-09 Colin J. Carlson 2017-12-09 Luca Giuggioli 2017-12-09 Sadie J. Ryan 2017-12-09 Stephanie S. Romañach 2017-12-09 Carl Boettiger 2017-12-09 Samuel D.

Thu, Apr 27, 2017

New rocker releases

R 3.4.0 and devel tags are now available in the Rocker versioned stack, and latest has been updated to 3.4.0. This means you can now run something like: docker run -d -p 8787:8787 rocker/tidyverse:devel to test out a recent version1 of R devel in RStudio with the tidyverse packages already installed. Note that the packages are not themselves devel versions (e.g. from GitHub) but are instead the latest versions from CRAN, just as in the latest tag.

Wed, Apr 19, 2017

Migrating to Hugo and blogdown

After OpenWetWare (2010), Wordpress (2010 - 2012) and Jekyll (2012 - 2017), I move platforms once again: now to Hugo. Why the move? As usual, this site remains a way for me to explore new technologies, but the cutting edge is by no means the allure which leads me to migrate. Rather, I find myself ever trying to move towards simpler platforms, what’s easier to maintain, free to host, easier to replicate, and what makes best use of the most widely available and well-maintained existing software and avoids unncessary custom hacks.