I’m a big fan of console tools, and I was wondering if there was a way to color the R console output.

I came across this tool called Radian with this attractive tagline.

A 21 century R console

So let’s try it!

The Dockerfile

I’ve written a short dockerfile with rocker/tidyverse as base image in order to start with batteries included.

FROM rocker/tidyverse:latest

# -qq: No output except for errors
RUN apt-get update -qq && apt-get -y install \
    python3-pip && \
    pip3 install radian

CMD ["radian"]

Yes it must be shocking for R people, radian is written in … Python.

Build, Run, Try

# build
$ docker build --rm --pull -t radian .
# run
$ docker run -it --rm radian 

Now I can use a awesome looking console! See it in action 1.

radian console

  1. Example taken from magrittr ↩︎