Dockerfiles for automatic builds on Docker Hub for Renjin, an interpreter for R built on the Java Virtual Machine.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
0.8.2413
0.9.2580
LICENSE
README.md

README.md

renjin-docker

Docker Automated build

Dockerfiles for automatic builds on Docker Hub for Renjin, an interpreter for R built on the Java Virtual Machine.

Images on Docker Hub: https://hub.docker.com/r/nuest/renjin

Run Renjin in container

By default, the image is set up to use Renjin interactively and an R session is automatically started.

docker run -it --rm nuest/renjin
> R.version
> q()

Stopping the session also stops the container.

You can also start renjin manually and see how R packages are automatically loaded when using library(..) and installed into ~/.m2/repository/org/renjin/cran/.

$ docker run -it nuest/renjin /bin/bash
# renjin

> library("dplyr")
> mtcars$amfactor <- factor(mtcars$am, labels = c("automatic", "manual"))
> summary(lm(mpg ~ factor(amfactor), data = mtcars))$coef
> quit()

# ls /root/.m2/repository/org/renjin/cran/
# exit

(Demo code based on based https://rpubs.com/davoodastaraky/mtRegression.)

Local build

Go into the version directory, then:

docker build --tag renjin .
docker run -it renjin

License

Renjin is available under the GPLv2 (or higher) license, see LICENSE for the full text of the license.

Code files in this repository are published under GPLv2 (or higher) and are Copyright (C) 2017 Daniel Nüst.