Dockerfiles for automatic builds on Docker Hub for Renjin (https://www.renjin.org/), an interpreter for R built on the Java Virtual Machine.
Images on Docker Hub: https://hub.docker.com/r/nuest/renjin
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.)
Go into the version directory, then:
docker build --tag renjin .
docker run -it renjin
Different Renjin versions are supported as tags.
The most recent version is taken from the Renjin Nexus, see org.renjin.renjin-debian-package.
You can pull all tags to your local machine to get a list of available versions:
docker pull -a nuest/renjin
docker images | grep nuest/renjin
renjin-docker/0.9.2726$ docker build --tag renjin:builder --file Dockerfile.builder .
renjin-docker/packages$ docker build --tag renjin:geospatial .
units
libudunits2-devPlease note that this project is released with a Contributor Code of Conduct (file CODE_OF_CONDUCT.md).
By participating in this project you agree to abide by its terms.
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.
Content type
Image
Digest
Size
272 MB
Last updated
almost 7 years ago
docker pull nuest/renjin