By the end of this guide, you will have a minimalist model running at your laptop in isolation and through chap, and have its code in your own GitHub repository.
Please consult the github guide of the previous session if you get unsure on how to fork and clone.
We provide two minimalist example repositories demonstrating Chap-compatible models. They both implement the same simple linear regression model that predicts disease cases from rainfall and temperature.
You should choose one based on your preferred programming language (either R or Python):
| Language | Repository | Environment Manager |
|---|---|---|
| Python | minimalist_example_uv | uv |
| R | minimalist_example_r | renv |
Click the Fork button in the top-right corner
Select your GitHub account as the destination
Clone the repository to your local machine. Replace YOUR-USERNAME with your GitHub username:
Python:
git clone https://github.com/YOUR-USERNAME/minimalist_example_uv.git
cd minimalist_example_uv
R:
git clone https://github.com/YOUR-USERNAME/minimalist_example_r.git
cd minimalist_example_r
After cloning your fork, open the README.md in the repository or on Github. Go through the guide in the Readme. It contains instructions for:
After following the README, and making changes to the code, you should commit and push changes to your fork on Github.
Verification: