• This repository has been archived on 02/Mar/2022
  • Stars
    star
    297
  • Rank 140,075 (Top 3 %)
  • Language
    Dockerfile
  • License
    GNU General Publi...
  • Created about 10 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Run current & prior versions of R using docker

license Project Status: Moved to https://github.com/rocker-org/rocker-versioned2 – The project has been moved to a new location, and the version at that location should be considered authoritative. DOI

Visit rocker-project.org for more about available Rocker images, configuration, and use.

MOVED to rocker-versioned2

This repository contains archived build scripts from the 3.x versioned series only. Visit rocker-versioned2 for current build scripts for 4.x versioned images.

Version-stable Rocker images for R 3.x

rocker

For documentation for R >= 4.0.0, for images r-ver, rstudio, tidyverse, verse, geospatial, shiny, and binder, please see the rocker-versioned2 repository.

image description size metrics build status
r-ver Version-stable base R & src build tools
rstudio Adds rstudio
tidyverse Adds tidyverse & devtools
verse Adds tex & publishing-related packages

rocker/geospatial, rocker/binder and rocker/shiny are also build on this stack, following the same versioning rules as described here.

This repository provides alternate stack to r-base, with an emphasis on reproducibility. Compared to those images, this stack:

  • builds on debian stable (debian:jessie for versions < 3.4.0, debian:stretch after, etc) release instead of debian:testing, so no more apt-get breaking when debian:testing repos are updated and you had to muck with -t unstable to get apt-get to work.
  • Further, this stack installs a fixed version of R itself from source, rather than whatever is already packaged for Debian (the r-base stack gets the latest R version as a binary from debian:unstable),
  • and it installs all R packages from a fixed snapshot of CRAN at a given date (MRAN repos).
  • provides images that are generally smaller than the r-base series

Users should include the version tag, e.g. rocker/verse:3.3.1 when reproduciblity is paramount, and use the default latest tag, e.g. rocker/verse for the most up-to-date R packages. All images still receive any Debian security patch updates. Note that any debian packages on these images (C libraries, compilers, etc) will likely be older/earlier versions than those found on the r-base image series.

NOTES

  • do not use apt-get install r-cran-* to install R packages on this stack. The requested R version and all R packages are installed from source in the version-stable stack. Installing R packages from apt (e.g. the r-cran-* packages) will install the version of R and versions of the packages that were built for the stable debian release (e.g. debian:stretch), giving you a second version of R and different packages. Please install R packages from source using the install.packages() R function (or the install2.r script), and use apt only to install necessary system libraries (e.g. libxml2). If you would prefer to install only the latest verions of packages from pre-built binaries using apt-get, consider using the r-base stack instead.

Version Tags

Using the R version tag will naturally lock the R version, and also lock the install date of any R packages on the image. For example, rocker/tidyverse:3.3.1 Docker image will always rebuild with R 3.3.1 and R packages installed from the 2016-10-31 MRAN snapshot, corresponding to the last day that version of R was the most recent release. Meanwhile rocker/tidyverse:latest will always have both the latest R version and latest versions of the R packages, built nightly.

See VERSIONS.md for details

Images

The image rocker/r-ver is the functional equivalent of r-base, though slightly pared down. Currently r-ver has tags for all minor R versions back to 3.1.0 (as far back as MRAN snapshots of CRAN are avialable); see all tags. Users can attempt to build other versions from the r-ver Dockerfile by specifying --build-arg R_VERSION=<VERSION>, though this is unlikely to work with very old R versions. Likewise, all non-current images are automatically pinned to a MRAN snapshot of CRAN from the last day that version was current. Users can set a custom snapshot date for the r-ver images by using --build-arg BUILD_DATE=<DATE> when building that Dockerfile.

The rocker/rstudio image builds with the latest version of RStudio by default. This can be customized by specifying the desired version in --build-arg RSTUDIO_VERSION=<VERSION> if building locally from its Dockerfile.

RStudio and Runtime Options

See the RStudio README for documentation on setting passwords, sharing volumes, adding RStudio Shiny Server(TM), and other configuration.

Maintenance and Updates

These images are actively maintained. This means that while an effort is made to preserve the general function of these images over time, both these Dockerfiles and the resulting images are subject to some change over time. In particular:

  • Images are regularly re-built on Docker Hub whenever their base image changes, starting with changes to debian Docker image. This is the rough equivalent of running apt-get upgrade on debian, since all apt-get commands are re-run and will pull in the most current sources. This allows the images to receive security updates to any packages installed from the debian repositories, but will not in general change the versions of any software and is very unlikely to break anything.

  • The Dockerfiles themselves are subject to change, to improve performance, ease of use, readability, or other concerns raised in the issues. These changes should also not alter the general behavior of R or R packages on the image. These changes can be seen in the git history. The rocker-versioned repo will use its own semantic version tagging to indicate changes to this repository, with snapshots from these tags archived on Zenodo.

License

The Dockerfiles in this repository are licensed under the GPL 2 or later.

Trademarks

RStudio is a registered trademark of RStudio, Inc. The use of the trademarked term RStudio and the distribution of the RStudio binaries through the images hosted on hub.docker.com has been granted by explicit permission of RStudio. Please review RStudio's trademark use policy and address inquiries about further distribution or other questions to [email protected].

More Repositories

1

rocker

R configurations for Docker
Shell
1,446
star
2

rocker-versioned2

Run current & prior versions of R using docker. rocker/r-ver, rocker/rstudio, rocker/shiny, rocker/tidyverse, and so on.
Shell
402
star
3

shiny

HTML
220
star
4

geospatial

Docker-based Geospatial toolkit for R, built on versioned Rocker images
Dockerfile
111
star
5

binder

Template for RStudio on Binder / JupyterHub
Dockerfile
69
star
6

ml

experimental machine learning container
Shell
50
star
7

devcontainer-features

A collection of Dev Container Features.
Shell
49
star
8

devcontainer-templates

Dev Container Templates to use Rocker based Dev Containers. Useful Templates for using R in GitHub Codespaces, etc.
Shell
23
star
9

ropensci

Dockerfile providing RStudio + Hadleyverse + rOpenSci packages
21
star
10

r-parallel

A Docker container with base R + several parallel/asynchronous packages
Shell
16
star
11

devcontainer-try-r

This repository contains some example Dev Container definitions for R and can be run on GitHub Codespaces.
Dockerfile
16
star
12

r-devel-san-clang

R devel with ASAN / UBSAN sanitizers using clang/clang++
Shell
14
star
13

devcontainer-images

R Docker images built with Dev Container Features
Makefile
12
star
14

r-devel-san

R devel with ASAN / UBSAN sanitizers
Shell
10
star
15

rstudio-daily

Daily builds of pre-release RStudio, built on daily builds of pre-release R. Live on the bleeding edge.
Shell
8
star
16

r2u

Rocker for use with r2u repository
Shell
7
star
17

rocker-paper

TeX
7
star
18

website

A website for the Rocker Project
Lua
6
star
19

ubuntu-lts

R Containers for Ubuntu LTS
Shell
6
star
20

drd

Docker R-Devel
Perl
4
star
21

drp

Docker R-Patched
Perl
2
star
22

rspm

Rocker RSPM Containers
Shell
2
star
23

bspm

Rocker BSPM Containers
Dockerfile
1
star
24

r-devel

Perl
1
star