This is the repository supporting the presentation "Easy R Tutorials with Dev Containers".
- Presenter: David Smith, Cloud Advocate at Microsoft
- Presented at: UseR!2022, June 21, 2022
- Presentation slides: PDF
- Presentation recording: UseR!2022 (Starting at 47:45)
You can recreate the demos in the talk using the steps outlined below.
If you have access to GitHub CodeSpaces, click the green "Code <>" button at the top right on this repository page, and then select "Create codespace on main". (GitHub CodeSpaces is available with GitHub Enterprise and GitHub Education.)
Once the Dev Container has started, browse to the file intro-regression-R-tidymodels/solution/Challenge-regression.ipynb. This will launch a Jupyter Notebook.
You can use Linux, Mac or Windows (including Windows Subsystem for Linux). Just make sure your machine has the following necessary software installed:
Note: you do not need to install R, Python, or anything like that. These will all be provided by the Dev Container.
Copy the contents of this repository to your machine. An easy way to do this is with the command:
git clone https://github.com/revodavid/devcontainers-r
Launch Visual Studio Code, and open the directory containing this downloaded repository. An easy way to do this is:
cd devcontainers-r
code .
Open the VS Code command palette (Control-Shift-P) and run the command Remote-Containers: Reopen in Container. (You can also use the pop-up dialog that automatically prompts you do this.) The first time you try this, you will need to wait a few minutes for the container to build. After this first time, startup will be near-instantaneous.
Now, browse to the file intro-regression-R-tidymodels/solution/Challenge-regression.ipynb. Work through the Jupyter Notebook.
- Dev Containers - Overview and specification
- Dev Containers in Visual Studio Code - Remote-Containers extension
- Visual Studio Code - Free editor available for Windows, Mac and Linux
- GitHub Codespaces - Available with GitHub Enterprise and GitHub Education
- Microsoft Workshop Library - The source of the workshop "Introduction to regression models by using R and Tidymodels" included in this presentation
Images used in presentation slides:
- File:A frustrated and depressed man holds his head in his hand.jpg - Wikimedia Commons
- File:Confused Felipe.jpg - Wikimedia Commons
- File:Woman looking depressed.jpg - Wikimedia Commons
- File:Angry woman.jpg - Wikimedia Commons
- "Bit" artwork by Ashley Willis
If you have any comments or suggestions about this presentation, please leave an issue in this repository.