Littler
R
packages have often funny names. littler stands for little R
, this means lower case r
.
littler provides the
r
program, a simplified command-line interface for GNU R. This allows direct execution of commands, use in piping where the output of one program supplies the input of the next, as well as adding the ability for writing hash-bang scripts, i.e. creating executable files starting with, say,#!/usr/bin/r
.
I have discovered this tool while exploring a dockerfile
provided by the Rocker project.
|
I was wondering what was install2.r
?
In fact it’s one of the recipe – and maybe one of the most interesting – provided by this package.
It’s installed by default in the rocker images, so let’s test it.
|
I was using the following command to script the installation of packages, so I will give it a try.
|
It also brings other features like executing RMarkdown
, check the littler vignette for more examples.