Generate a Git repository that can run R code with RStudio on the browser via mybinder.org or any JupyterHub from this template repository!
FROM rocker/binder
COPY install.r install.r
RUN Rscript install.r
You can create an install.r
file that will be executed on build.
Use install.packages()
to install:
install.packages("ggplot2")
Binary versions of packages will be quickly installed from r2u via bspm. There is no need to manually manage 'system' dependencies with apt-get, these are handled automatically in the Docker build phase.
Commonly used packages in the tidyverse
and geospatial
collection are already installed, see install.r
The 'Launch on Binder' badge in this README points to the template repository.
You should modify it to point to your own repository. Keep the urlpath=rstudio
parameter intact - that is what makes sure your repo will launch directly into
RStudio