/demo_r_lab2

Primary LanguageJupyter NotebookBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Template materials in R

Example repository to create an environment with course materials in R.

Try it on Binder

Binder

Structure of the repo

This repository is based on the binder-examples/conda example.

repo2docker is the underlying tool that is used to build an environment from a repository.

repo2docker can be configured with several types of files. In the case of this repo:

  • binder/environment.yml: specify dependencies that will be installed using conda
  • binder/postBuild: specify extra dependencies:
    • JupyterLab extensions,
    • R or Bioconductor packages not available in Anaconda cloud (i.e not installable by conda).

Both Jupyter Lab and RStudio are installed.

Once created, the environment can be reused without building it again.

For more information, see the extensive rep2docker documentation.

Materials

Materials can be added anywhere to this repository, either at the top level or in subdirectory.

When building the environment, the materials (and any other file) will be copied to the Docker image.

In this example, there is already a test notebook (example-notebook.ipynb) and a test R script (example-script.R).