Skip to content

Commit 2604d54

Browse files
committed
move index to setup + update installations
1 parent c5471a6 commit 2604d54

File tree

2 files changed

+93
-53
lines changed

2 files changed

+93
-53
lines changed

index.md

+3-33
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,7 @@
22
site: sandpaper::sandpaper_site
33
---
44

5-
## Epiverse-TRACE tutorials
6-
7-
The Epiverse-TRACE tutorials are training materials for Outbreak Analysis tasks aimed at [learners](../profiles.md) who are willing to achieve basic competence in modelling and analytics.
8-
9-
The tutorials are built around the workflow of outbreak analysis split into three stages : early tasks, middle tasks and late tasks.
10-
11-
![An overview of the tutorial topics](https://epiverse-trace.github.io/task_pipeline-minimal.svg)
12-
13-
Task topics consist of one or more episodes. You can navigate to different episodes using the menu on the left hand side. Alternatively, you may find the topic you are interested in the [key points](../key-points.md) of each episode.
14-
15-
Each episode contains:
16-
17-
+ **Overview** : describes what questions will be answered and what are the objectives of the episode.
18-
+ **Prerequisites**: describes what episodes/packages need to be covered before the current episode.
19-
+ **Example R code** : work through the episodes on your own computer using the example R code.
20-
+ **Challenges** : complete challenges to test your understanding.
21-
+ **Explainers** : add to your understanding of mathematical and modelling concepts with the explainer boxes.
22-
23-
Also check out the [glossary](../reference.md) for any terms you may be unfamiliar with.
24-
25-
## Related projects
26-
27-
+ R package vignettes : for R package `{package}` find the vignette located at `https://epiverse-trace.github.io/{package}/`. [Look at all Epiverse-TRACE packages in our developer space](https://epiverse-trace.github.io/).
28-
+ [How-to guides](https://epiverse-trace.github.io/howto/) : reproducible recipes with concrete steps to solve specific Outbreak Analysis questions.
29-
+ [The Epidemiologist R Handbook](https://www.epirhandbook.com/en/index.html) : Quick R code reference manual with task-centered examples that address common epidemiological problems.
30-
+ *COMING SOON* case studies : reproducible case-studies of outbreak data analysis tasks using R packages.
31-
32-
33-
34-
This tutorial was built with [The Carpentries Workbench][workbench].
35-
36-
37-
[workbench]: https://carpentries.github.io/sandpaper-docs
5+
This is an [Epiverse-TRACE][epiversetrace] tutorial built with [The Carpentries Workbench][workbench].
386

7+
[epiversetrace]: https://epiverse-trace.github.io/
8+
[workbench]: https://carpentries.github.io/workbench/

learners/setup.md

+90-20
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,105 @@
22
title: Setup
33
---
44

5-
## Software Setup
5+
## Motivation
6+
7+
**Outbreaks** appear with different diseases and in different contexts, but what all of them have in common is the key public health questions ([Cori et al. 2017](https://royalsocietypublishing.org/doi/10.1098/rstb.2016.0371#d1e605)). We can relate these key public health questions to outbreak data analysis tasks.
8+
9+
Epiverse-TRACE aims to provide a software ecosystem for [**outbreak analytics**](reference.md#outbreakanalytics) with integrated, generalisable and scalable community-driven software. We support the development of R packages, make the existing ones interoperable for the user experience, and stimulate a community of practice.
10+
11+
### Epiverse-TRACE tutorials
12+
13+
The tutorials are built around an outbreak analysis pipeline split into three stages: **Early tasks**, **Middle tasks** and **Late tasks**.
14+
15+
![An overview of the tutorial topics](https://epiverse-trace.github.io/task_pipeline-minimal.svg)
16+
17+
Each task has its tutorial website. Each tutorial website consists of a set of episodes.
18+
19+
| [Early task tutorials ➠](https://epiverse-trace.github.io/tutorials-early/) | [Middle task tutorials ➠](https://epiverse-trace.github.io/tutorials-middle) | [Late task tutorials ➠](https://epiverse-trace.github.io/tutorials-late/) |
20+
|---|---|---|
21+
| Reading and cleaning case data | Real-time analysis and forecasting | Scenario modelling |
22+
| Read and clean linelist data, Access delay distributions, and Estimate transmission metrics. | Forecast cases, Estimate severity, and Estimate superspreading. | Simulate disease spread and Investigate interventions. |
23+
24+
Each episode contains:
25+
26+
+ **Overview** : describes what questions will be answered and what are the objectives of the episode.
27+
+ **Prerequisites**: describes what episodes/packages need to be covered before the current episode.
28+
+ **Example R code** : work through the episodes on your own computer using the example R code.
29+
+ **Challenges** : complete challenges to test your understanding.
30+
+ **Explainers** : add to your understanding of mathematical and modelling concepts with the explainer boxes.
31+
32+
Also check out the [glossary](../reference.md) for any terms you may be unfamiliar with.
33+
34+
### Epiverse-TRACE R packages
35+
36+
Our strategy is to gradually incorporate specialised **R packages** into our traditional analysis pipeline. These packages should fill the gaps in these epidemiology-specific tasks in response to outbreaks.
37+
38+
![In **R**, the fundamental unit of shareable code is the **package**. A package bundles together code, data, documentation, and tests and is easy to share with others ([Wickham and Bryan, 2023](https://r-pkgs.org/introduction.html))](episodes/fig/pkgs-hexlogos-2.png)
39+
40+
:::::::::::::::::::::::::::: prereq
41+
42+
This course assumes intermediate R knowledge. This workshop is for you if:
43+
44+
- You can use the magrittr pipe `%>%` and/or native pipe `|>`
45+
- You are familiar with functions from `{dplyr}`, `{tidyr}`, and `{ggplot2}`
46+
- You can read data into R, transform and reshape data, and make a wide variety of graphs
47+
48+
We expect participants to have some exposure to basic Statistical, Mathematical and Epidemic theory concepts, but NOT intermediate or expert familiarity with modeling.
649

7-
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: instructor
50+
::::::::::::::::::::::::::::
851

9-
Setup instructions live in this document. Please specify the tools and the data sets the learner needs to have installed. If you want to hide different setup instructions, you can use a `solution` tag.
52+
## Software Setup
1053

11-
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
54+
Follow these two steps:
1255

13-
### Install R and RStudio
56+
### 1. Install or upgrade R and RStudio
1457

1558
R and RStudio are two separate pieces of software:
1659

1760
* **R** is a programming language and software used to run code written in R.
18-
* **RStudio** is an integrated development environment (IDE) that makes using R easier. In this tutorial, we use RStudio to interact with R.
61+
* **RStudio** is an integrated development environment (IDE) that makes using R easier. We recommend to use RStudio to interact with R.
62+
63+
To install R and RStudio, follow these instructions <https://posit.co/download/rstudio-desktop/>.
1964

20-
If you don't already have `R` and `RStudio` installed, follow the instructions for your operating system at <https://posit.co/download/rstudio-desktop/>.
65+
::::::::::::::::::::::::::::: callout
2166

22-
### Update R and RStudio
67+
### Already installed?
2368

24-
This tutorial requires R version 4.0.0 or later.
69+
Hold on: This is a great time to make sure your R installation is current.
2570

26-
If you already have R and RStudio installed, first check if your R version is up to date:
71+
This tutorial requires **R version 4.0.0 or later**.
72+
73+
:::::::::::::::::::::::::::::
2774

28-
* When you open RStudio your R version will be printed in the console on the [console window](https://docs.posit.co/ide/user/ide/guide/code/console.html). Alternatively, you can type `sessionInfo()` into the console.
75+
To check if your R version is up to date:
2976

30-
* If your version of R is older than the one required, download and install the latest version of R from the [R project website](https://cran.rstudio.com/) for your operating system.
77+
- In RStudio your R version will be printed in [the console window](https://docs.posit.co/ide/user/ide/guide/code/console.html). Or run `sessionInfo()` there.
3178

32-
* After installing a new version of R, you will have to reinstall all your packages with the new version. For Windows, there is a package called `installr` that can help you with upgrading your R version and migrating your package library.
79+
- **To update R**, download and install the latest version from the [R project website](https://cran.rstudio.com/) for your operating system.
3380

34-
* To update RStudio to the latest version, open RStudio and click on
81+
- After installing a new version, you will have to reinstall all your packages with the new version.
82+
83+
- For Windows, the `{installr}` package can upgrade your R version and migrate your package library.
84+
85+
- **To update RStudio**, open RStudio and click on
3586
`Help > Check for Updates`. If a new version is available follow the
36-
instructions on the screen. By default, RStudio will also automatically notify you
37-
of new versions every once in a while.
87+
instructions on the screen.
3888

3989
::::::::::::::::::::::::::::: callout
4090

91+
### Check for Updates regularly
92+
4193
While this may sound scary, it is **far more common** to run into issues due to using out-of-date versions of R or R packages. Keeping up with the latest versions of R, RStudio, and any packages you regularly use is a good practice.
4294

4395
:::::::::::::::::::::::::::::
4496

45-
### Install required R packages
97+
### 2. Install the required R packages
4698

99+
<!--
47100
During the tutorial, we will need a number of R packages. Packages contain useful R code written by other people. We will use packages from the [Epiverse-TRACE](https://epiverse-trace.github.io/).
101+
-->
48102

49-
To try to install these packages, open RStudio and copy and paste the following code chunk into the [console window](https://docs.posit.co/ide/user/ide/guide/code/console.html), then press the <kbd>Enter</kbd> (Windows and Linux) or <kbd>Return</kbd> (MacOS) to execute the command.
103+
Open RStudio and **copy and paste** the following code chunk into the [console window](https://docs.posit.co/ide/user/ide/guide/code/console.html), then press the <kbd>Enter</kbd> (Windows and Linux) or <kbd>Return</kbd> (MacOS) to execute the command:
50104

51105
```r
52106
if(!require("pak")) install.packages("pak")
@@ -61,9 +115,25 @@ new_packages <- c(
61115
"tidyverse"
62116
)
63117

64-
pak::pak(new_packages)
118+
pak::pkg_install(new_packages)
119+
```
120+
121+
These installation steps could ask you `? Do you want to continue (Y/n)` write `Y` and press <kbd>Enter</kbd>.
122+
123+
::::::::::::::::::::::::::::: spoiler
124+
125+
### error with {epiparameter}
126+
127+
If you see an error when installing {epiparameter}, try this alternative code:
128+
129+
```r
130+
if(!require("devtools")) install.packages("devtools")
131+
132+
devtools::install_github("epiverse-trace/epiparameter")
65133
```
66134

135+
:::::::::::::::::::::::::::::
136+
67137
You should update **all of the packages** required for the tutorial, even if you installed them relatively recently. New versions bring improvements and important bug fixes.
68138

69139
When the installation has finished, you can try to load the packages by pasting the following code into the console:
@@ -88,7 +158,7 @@ We will download the data directly from R during the tutorial. However, if you a
88158

89159
The data files for the tutorial can be downloaded manually here:
90160

91-
- <https://epiverse-trace.github.io/tutorials/data/ebola_cases.csv>
161+
- <https://epiverse-trace.github.io/tutorials-middle/data/ebola_cases.csv>
92162

93163
## Your Questions
94164

0 commit comments

Comments
 (0)