Articles by Tony Hirst

Running R Projects in MyBinder – Dockerfile Creation With Holepunch

September 11, 2019 | 0 Comments

For those who don’t know it, MyBinder is a reproducible research automation tool that will take the contents of a Github repository, build a Docker container based on requirements files found inside the repo, and then present the user with a temporary, running container that can serve a Jupyter ...
[Read more...]

Looking Up R / CRAN Package Maintainers With an Affiliation

September 10, 2019 | 0 Comments

Trying to find an examiner for a particular PhD thesis relating to a rather interesting datastructure for wrangling messy datatables, I wondered whether we might find a likely suspect amongst the R package maintainer community. We can get a list of R package maintainers here and a list of package ...
[Read more...]

Embedded Audio Players in Jupyter Notebooks Running IRKernel

September 6, 2018 | 0 Comments

For ref, when running IRkernel Jupyter R notebooks, media objects can be embedded by making use of the shiny::tags function, that can return HTML elements with appropriate MIME types, and are renderable using _repr_html machinery (h/t @flying-sheep): For example: PS By the by, I notice the existence ...
[Read more...]

Generative Assessment Creation

May 14, 2018 | 0 Comments

It’s coming round to that time of year where we have to create the assessment material for courses with an October start date. In many cases, we reuse question forms from previous presentations but change the specific details. If a question is suitably defined, then large parts of this ...
[Read more...]

R HTMLWidgets in Jupyter Notebooks

April 26, 2018 | 0 Comments

A quick note for displaying R htmlwidgets in Jupyter notebooks without requiring pandoc – there may be a more native way but this acts as a workaround in the meantime if not: PS and from the other side, using reticulate for Python powered Shiny apps.
[Read more...]

Sketch – Data Trivia

April 7, 2018 | 0 Comments

A bit more tinkering with F1 data from the ergast db, this time trying to generating trivia / facts around races. The facts are identified using SQL queries: Some of the queries also embed query fragments, which I intend to develop further… I'm using knitr to generate Github flavoured markdown (gfm) ... [Read more...]

Tinkering with Competitive Supertimes

April 6, 2018 | 0 Comments

I’m back on the R thang with F1 data from, and started having a look at how drivers and teams compare at a circuit. One metric I came across for comparing teams over a season is the supertime, typically calculated for each manufacturer as the average of ...
[Read more...]

Note On My Emerging Workflow for Working With Binderhub

December 1, 2017 | 0 Comments

Yesterday saw the public reboot of Binder / MyBinder (which I first wrote about a couple of years ago here), as reported in The Jupyter project blog post Binder 2.0, a Tech Guide and this practical guide: Introducing Binder 2.0 — share your interactive research environment. For anyone not familiar with Binder / MyBinder, it’... [Read more...]

Programming, meh… Let’s Teach How to Write Computational Essays Instead

November 15, 2017 | 0 Comments

From Stephen Wolfram, a nice phrase to describe the sorts of thing you can create using tools like Jupyter notebooks, Rmd and Mathematica notebooks: computational essays that complements the “computational narrative” phrase that is also used to describe such documents. Wolfram’s recent blog post What Is a Computational Essay?, ...
[Read more...]

Oh How I Have Failed Thee, Jupyter Notebooks…

October 2, 2017 | 0 Comments

Although I first came across Jupyter – then IPython – notebooks in October 2012 (I think…), it took me another six months or so before I started playing them and pitched them for the then nascent TM351 course. We decided to explore the notebooks when the course/module team first met around about ... [Read more...]

ergastR – R Wrapper for ergast F1 Results Data API

July 14, 2017 | 0 Comments

By the by, I’ve posted a first attempt at an R package – ergastR to wrap the ergast developer API, which is where I get chunks of data from for my f1datajunkie tinkerings. You can find it on Github: psychemedia/ergastR. The function names are the ones used in ... [Read more...]

HexJSON HTMLWidget for R, Part 3

June 30, 2017 | 0 Comments

In HexJSON HTMLWidget for R, Part 1 I described a basic HTMLwidget for rendering hexJSON maps using d3-hexJSON, and HexJSON HTMLWidget for R, Part 2 described updates for supporting colour. Having booked off today for emergency family cover that turned out not to be required, I had another stab at the ...
[Read more...]

HexJSON HTMLWidget for R, Part 2

June 29, 2017 | 0 Comments

In my previous post – HexJSON HTMLWidget for R, Part 1 – I described a first attempt at an HTMLwidget for displaying hexJSON maps using d3-hexJSON. I had another play today and added a few extra features, including the ability to: add a grid (as demonstrated in the original d3-hexJSON examples), ...
[Read more...]

HexJSON HTMLWidget for R, Part 1

June 28, 2017 | 0 Comments

In advance of the recent UK general election, ODI Leeds published an interactive hexmap of constituencies to provide a navigation surface over various datasets relating to Westminster constituencies: As well as the interactive front end, ODI Leeds published a simple JSON format for sharing the hex data – hexjson that allows ...
[Read more...]
1 2 3 8

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)