Skip to content

Commit

Permalink
Further suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Oct 15, 2024
1 parent cec5252 commit 9d8e3ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions vignettes/dust2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ Consider now an SIR model (Susceptible - Infected - Recovered). This sort of mod
sir <- dust_example("sir")
```

To get information about the parameters, use `coef()` on the generator

The model is initialised the same way as before:

```{r sir_create}
Expand Down
8 changes: 7 additions & 1 deletion vignettes/writing.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ stopifnot(length(i) == 1, i == 2)
cc_output(annotations[[i]])
```

If we had wanted a continuous time system of ODEs we would have written `// [[dust2::time_type(continuous)]]` and then later some of the rest of the code would be different; we will discuss this later.
If we had wanted a continuous time system of ODEs we would have instead written:

```cc
// [[dust2::time_type(continuous)]]
```

and then later some of the rest of the code would be different; we will discuss this later.

The remaining annotations tell `dust2` about the parameters. It does not actually need to know about them, but this will be information that eventually we will surface in R so that you know what you can initialise the system with.

Expand Down

0 comments on commit 9d8e3ed

Please sign in to comment.