You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.md
+3-33
Original file line number
Diff line number
Diff line change
@@ -2,37 +2,7 @@
2
2
site: sandpaper::sandpaper_site
3
3
---
4
4
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
-

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].
Copy file name to clipboardExpand all lines: learners/setup.md
+90-20
Original file line number
Diff line number
Diff line change
@@ -2,51 +2,105 @@
2
2
title: Setup
3
3
---
4
4
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
+

16
+
17
+
Each task has its tutorial website. Each tutorial website consists of a set of episodes.
| 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
+
)](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.
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.
R and RStudio are two separate pieces of software:
16
59
17
60
***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/>.
19
64
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
21
66
22
-
### Update R and RStudio
67
+
### Already installed?
23
68
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.
25
70
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
+
:::::::::::::::::::::::::::::
27
74
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:
29
76
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.
31
78
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.
33
80
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
35
86
`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.
38
88
39
89
::::::::::::::::::::::::::::: callout
40
90
91
+
### Check for Updates regularly
92
+
41
93
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.
42
94
43
95
:::::::::::::::::::::::::::::
44
96
45
-
### Install required R packages
97
+
### 2. Install the required R packages
46
98
99
+
<!--
47
100
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
+
-->
48
102
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:
50
104
51
105
```r
52
106
if(!require("pak")) install.packages("pak")
@@ -61,9 +115,25 @@ new_packages <- c(
61
115
"tidyverse"
62
116
)
63
117
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:
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.
68
138
69
139
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
88
158
89
159
The data files for the tutorial can be downloaded manually here:
0 commit comments