Skip to content

Commit

Permalink
Don't coerse delay_opts() to list
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmbaazam committed Oct 19, 2023
1 parent 3942512 commit cdfc7e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-estimate_infections.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ default_estimate_infections <- function(..., add_stan = list(), delay = TRUE) {

suppressWarnings(estimate_infections(...,
generation_time = generation_time_opts(generation_time),
delays = ifelse(delay, list(delay_opts(reporting_delay)), list(delay_opts()))[[1]],
delays = ifelse(delay, delay_opts(reporting_delay), delay_opts())[[1]],
stan = stan_args, verbose = FALSE
))
}
Expand Down

0 comments on commit cdfc7e2

Please sign in to comment.