diff --git a/vignettes/dust2.Rmd b/vignettes/dust2.Rmd index 1d83b834..4790f79b 100644 --- a/vignettes/dust2.Rmd +++ b/vignettes/dust2.Rmd @@ -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} diff --git a/vignettes/writing.Rmd b/vignettes/writing.Rmd index 85817388..8a9c7dc3 100644 --- a/vignettes/writing.Rmd +++ b/vignettes/writing.Rmd @@ -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.