Giter Site home page Giter Site logo

acofield94 / docker-rstats Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kaggle/docker-rstats

0.0 0.0 0.0 264 KB

Kaggle R docker image

License: Apache License 2.0

R 51.02% Shell 24.01% Smarty 1.25% Dockerfile 22.18% Jupyter Notebook 1.53%

docker-rstats's Introduction

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:

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.

docker-rstats's People

Contributors

nerdcha avatar rosbo avatar philmod avatar dchudz avatar benhamner avatar wcuk avatar vimota avatar dansbecker avatar djherbis avatar brandenkmurray avatar neil-schneider avatar sebbov avatar ifigotin avatar emzeq avatar mrisdal avatar kevinykuo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.