GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Kaggle/docker-rstats: Kaggle R docker image

This repository was archived by the owner on Oct 21, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

446 Commits
446 Commits

Folders and files

NameName
Last commit message
Last commit date
kaggle
kaggle
 
 
tests
tests
 
 
tools
tools
 
 
Dockerfile
Dockerfile
 
 
Jenkinsfile
Jenkinsfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
RProfile.R
RProfile.R
 
 
bioconductor_installs.R
bioconductor_installs.R
 
 
build
build
 
 
clean-layer.sh
clean-layer.sh
 
 
diff
diff
 
 
fix-packaging-record.sh
fix-packaging-record.sh
 
 
gpu.Dockerfile
gpu.Dockerfile
 
 
install_iR.R
install_iR.R
 
 
ldpaths
ldpaths
 
 
nbconvert-extensions.tpl
nbconvert-extensions.tpl
 
 
package_installs.R
package_installs.R
 
 
push
push
 
 
test
test
 
 
testthat.R
testthat.R
 
 

Repository files navigation

Note: R Support has been removed from Kaggle notebooks: https://www.kaggle.com/discussions/product-announcements/751525

docker-rstats

Kaggle Notebooks allow users to run scripts against our competitions and datasets without having to download data or set up their environment.

Our R Docker images are stored on Google Container Registry at:

  • CPU-only: gcr.io/kaggle-images/rstats
  • GPU: gcr.io/kaggle-gpu-images/rstats

Here's an example:

example script

This is the Dockerfile (etc.) used for building the image that runs R scripts on Kaggle. Here's the Docker image on Dockerhub.

Getting started

To get started with this image, read our guide to using it yourself, or browse Kaggle Notebooks for ideas.

Requesting new features

We welcome pull requests if there are any packages you'd like to add!

We can merge your request quickly if you check that it builds correctly. Here's how to do that.

New R libraries

If you want a library that's, say, on GitHub but not yet on CRAN, then you can add it to package_installs.R. To check that it will work, you can follow this example, which shows how to add a library called coolstuff that's available from GitHub user nerdcha.

me@my-computer:/home$ docker run --rm -it kaggle/rstats
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
[...etc...]
> library(devtools)
> install_github("nerdcha/coolstuff")
Downloading GitHub repo nerdcha/coolstuff@master
[...etc...]
** testing if installed package can be loaded
* DONE (coolstuff)
> library(coolstuff)
>

Everything worked, so we can add the line install_github("nerdcha/coolstuff") to package_installs.R and submit the pull request.

New libraries with complex dependencies

Some libraries will need extra system support to work. Installing them follows a pretty similar pattern; just try whatever prerequisites the package maintainer says are needed for a Linux system. For example, if the coolstuff package says to run apt-get install libcool-dev first, then you can test it in the following way.

me@my-computer:/home$ docker run --rm -it kaggle/rstats /bin/bash
root@2dd4317c8799:/# apt-get update
Ign:1 http://ftp.de.debian.org/debian jessie InRelease
[...]
root@2dd4317c8799:/# apt-get install libcool-dev
Reading package lists... Done
[...]
root@2dd4317c8799:/# R
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
[...]
> library(devtools)
> install_github("nerdcha/coolstuff")
Downloading GitHub repo nerdcha/coolstuff@master
[...]
** testing if installed package can be loaded
* DONE (coolstuff)
> library(coolstuff)
>

If that's all working as expected, then you can add apt-get install libcool-dev to the end of the Dockerfile, and install_github("nerdcha/coolstuff") to package_installs.R.

About

Kaggle R docker image

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

153 stars

Watchers

53 watching

Forks

95 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.