https://github.com/nuest/renjin-docker
Dockerfiles for automatic builds on Docker Hub for Renjin, an interpreter for R built on the Java Virtual Machine.
https://github.com/nuest/renjin-docker
Last synced: about 1 year ago
JSON representation
Dockerfiles for automatic builds on Docker Hub for Renjin, an interpreter for R built on the Java Virtual Machine.
- Host: GitHub
- URL: https://github.com/nuest/renjin-docker
- Owner: nuest
- License: gpl-2.0
- Created: 2017-08-14T12:15:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-15T15:52:00.000Z (over 6 years ago)
- Last Synced: 2025-02-14T18:48:58.828Z (about 1 year ago)
- Language: Shell
- Size: 23.4 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# renjin-docker
[](https://microbadger.com/images/nuest/renjin "Get your own image badge on microbadger.com") []()
Dockerfiles for automatic builds on Docker Hub for **[Renjin](https://en.wikipedia.org/wiki/Renjin)** ([https://www.renjin.org/](https://www.renjin.org/)), an interpreter for [R](https://en.wikipedia.org/wiki/R_(programming_language)) built on the [Java Virtual Machine](https://en.wikipedia.org/wiki/Java_virtual_machine).
Images on Docker Hub: [https://hub.docker.com/r/nuest/renjin](https://hub.docker.com/r/nuest/renjin)
## Run Renjin in container
By default, the image is set up to [use Renjin interactively](http://docs.renjin.org/en/latest/interactive/index.html) and an R session is automatically started.
```bash
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:
```bash
docker build --tag renjin .
docker run -it renjin
```
## Versions
Different Renjin versions are supported as tags.
The most recent version is taken from the [Renjin Nexus](https://nexus.bedatadriven.com/#view-repositories;public~browsestorage~org/renjin/), see `org.renjin.renjin-debian-package`.
You can pull all tags to your local machine to get a list of available versions:
```bash
docker pull -a nuest/renjin
docker images | grep nuest/renjin
```
## Building geospatial packages in a container
```
renjin-docker/0.9.2726$ docker build --tag renjin:builder --file Dockerfile.builder .
renjin-docker/packages$ docker build --tag renjin:geospatial .
```
- `units`
- needs `libudunits2-dev`
## Code of Conduct
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md) (file `CODE_OF_CONDUCT.md`).
By participating in this project you agree to abide by its terms.
## 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.