Skip to content

Commit

Permalink
Load epidemics instead of installing it
Browse files Browse the repository at this point in the history
Co-authored-by: Andree Valle Campos <[email protected]>
  • Loading branch information
Bisaloo and avallecam committed Jan 29, 2024
1 parent 4a71c23 commit be4fde0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions episodes/simulating-transmission.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -400,13 +400,10 @@ For models that are described by ODEs, running the model actually means to solve
In `epidemics`, the [ODE solver](https://www.boost.org/doc/libs/1_82_0/libs/numeric/odeint/doc/html/index.htm) uses the [Runge-Kutta method](https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods).
::::::::::::::::::::::::::::::::::::::::::::::::

Now we are ready to run our model. To install the `epidemics` package :
Now we are ready to run our model. Let's load the `epidemics` package :

```{r installation, eval = FALSE, echo = 2:3}
# nolint start
if (!require("pak")) install.packages("pak")
pak::pak("epiverse-trace/epidemics")
# nolint end
```{r loading}
library(epidemics)
```

Then we specify `time_end=600` to run the model for 600 days.
Expand Down

0 comments on commit be4fde0

Please sign in to comment.