Closed stevencarlislewalker closed 2 years ago
Caused by initializing zero-length date vectors, in a manner that is either R version-dependent or OS-dependent.
A possible solution is to use structure(..., class = "Date")
instead of as.Date
, but this seems hacky.
Changed as.Date.numeric(numeric(0L))
to as.Date.numeric(numeric(0L), origin = "1970-01-01")
Steps
library(McMasterPandemic)
flexmodel(params = c(a = 1), state = c(b = 1))
Actual Result
Expected Results