Skip to content

Commit 4a0e3fd

Browse files
bug in example
1 parent f7d4572 commit 4a0e3fd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

R/mp_tmb_model_spec.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ must_save_time_args = function(formulas) {
320320
#' spec2 = mp_tmb_model_spec(
321321
#' during = list(
322322
#' force_of_infection ~ beta * I / N
323-
#' , mp_per_capita_flow("S", "I", force_of_infection, "infection")
323+
#' , mp_per_capita_flow("S", "I", "force_of_infection", "infection")
324324
#' )
325325
#' , default = list(N = 100, S = 99, I = 1, beta = 0.2)
326326
#' )
@@ -336,7 +336,7 @@ must_save_time_args = function(formulas) {
336336
#' ## while ensuring consistent values for `S`.
337337
#' spec3 = mp_tmb_model_spec(
338338
#' before = S ~ N - I
339-
#' during = mp_per_capita_flow("S", "I", "beta * I / N", "infection")
339+
#' , during = mp_per_capita_flow("S", "I", "beta * I / N", "infection")
340340
#' , default = list(N = 100, I = 1, beta = 0.2)
341341
#' )
342342
#' (spec3

man/mp_tmb_model_spec.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)