This project provides a pre-configured Docker image to effortlessly run JupyterLab with R as the default language. The image includes essential dependencies, R installation, and popular packages like tidyverse
, ggplot2
, dplyr
, and BiocManager
for seamless data manipulation and analysis. Your notebooks will be stored in the 'notebooks' directory, ensuring organized work. Enjoy a hassle-free, reproducible, and isolated environment for your data science tasks!
This guide will help you set up a running copy of JupyterLab Environment for Statistical Analysis using R on your machine. The Docker environment provides a seamless and isolated workspace for data science tasks, with R as the default language and popular packages pre-installed. Let's get started!
Ensure you have the following software installed on your machine. If not, download and install them from the provided official website:
Clone this Git repository to your local machine using Git:
cd /Users/your_username/path_to_install
git clone [email protected]:SamThilmany/JupyterLab-with-R--Docker-Environment.git
Move into the jupyter_r
directory of the cloned project and build the container:
cd /Users/your_username/path_to_install/JupyterLab-with-R--Docker-Environment/jupyter_r
docker compose build
This step will take a few minutes (maybe a few minutes more than you'd like, depending on your connection speed), so make sure you grab a cup of coffee and pass the time by thinking about the big questions of humanity... ☕️
Unfortunately, the process sometimes fails. Occasionally even several times in succession. This is usually due to a weak Internet connection; it is therefore highly advisable to be connected to the Internet via cable.
If the process fails, you can simply enter the build
command again. All packages that have already been downloaded were cached so that you do not have to start from scratch. If the process aborts several times, check whether packages have been successfully downloaded again in between. This indicates that it is actually due to network problems.
Still in the jupyter_r
directory, run:
docker compose up -d
Open your favourite web browser and enter the following URL into the adress bar:
http://127.0.0.1:8888/
Congratulations! You now have a fully functional JupyterLab environment with R as the default language. Start creating new notebooks, analyzing data, and utilizing the power of R and its rich ecosystem of packages.
- To stop the JupyterLab session, type
Ctrl + C
in the terminal where the container is running. Then typedocker compose down
to stop the Docker container. - To start the container again in the future, repeat Step 3.
- Your notebooks will be saved in the
/Users/your_username/path_to_install/JupyterLab-with-R--Docker-Environment/notebooks/
directory on your local machine, enabling easy access and collaboration.
Enjoy your productive data science journey with the JupyterLab Environment for Statistical Analysis using R! If you encounter any issues or have any questions, please feel free to reach out via GitLab Issues. Happy coding!
- IRkernel
- languageserver
- devtools
- tidyverse
- showtext
- ggplot2
- ggfortify
- ggforce
- ggtext
- ggrepel
- GGally
- ggVennDiagram
- eulerr
- patchwork
- cowplot
- metR
- doParallel
- combinat
- disgenet2r (via
devtools
and GitLab)
- fgsea
- biomaRt
- enrichplot
- DOSE
- limma
- clusterProfiler
- AnnotationDbi
- org.Hs.eg.db
- rawrr
- ComplexHeatmap
- MSstats
- MSstatsTMT
Semantic Versioning is used for versioning. For the versions available, see the Releases.
This project is distributed under the Apache License 2.0. See LICENSE for more information.