Expanding the Lifespan of Software for Demographic Analysis with Containers: An Application of Spatial Sampling
File | Description |
---|---|
Dockerfile | This text file defines which container image Binder needs to launch. |
install.R | This R script contains lines to install packages required for the analysis. |
example.R | This is the file with the example code we will run inside the container once it is launched. |
[README.md] | Readme file. |
This readme contains simple code for the "launch binder" button that you can see above. To view the source code of the readme, click this link. The code consists of two constant parts that instruct a web browser to open Binder and one part that is your username and repository name.:
Code Part | Code | Comments |
---|---|---|
Constant | [](https://mybinder.org/v2/gh/ |
Creates a button and points a web browser to Binder. |
Change to your username and repository on GitHub | e-kotov/grid-sample-containerized |
Specifies which repository to use for the container. The format is <github-username>/<repository-name> . |
Constant | /HEAD?urlpath=rstudio) |
Instructs Binder to use the main repository branch and to go to RStudio in the container. |
For your projects, change the middle part of the code with / and concatenate everything into a single line. You get the code for the button for the README.md file for your repository, which is displayed by default whenever someone opens your repository on GitHub. Here's an example for the current repository:
[](https://mybinder.org/v2/gh/e-kotov/grid-sample-containerized/HEAD?urlpath=rstudio)