You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remove.packages("dde")
gen <- odin({
initial(x) <- 1
update(x) <- x + 1
})
mod <- gen$new(use_dde=FALSE) # FALSE is the default value anyway, but just to be really clear
mod$run(0:10)
See error:
Error in loadNamespace(name) (odin.R#100): there is no package called ‘dde’
Looks like this code path uses dde unconditionally:
Yeah, this is not spectacular, but it's been that way forever - most of it reflects the initial nature of discrete time models as bolted on to odin. We'll shortly move to pushing dust as the main way to run them I think.
There's a similar situation with V8 now - if you compile a model to js then you really need V8 in order to work with it. So the current dependency list is the "core" list.
Probably given how simple the usage is here we should probably write a simple iterator for odin models in the meantime
Yes, I was initially confused and thought I'd done something wrong, until I looked at the source code. A nice odin error message would have reassured me!
To reproduce:
See error:
Looks like this code path uses
dde
unconditionally:odin/R/wrapper.R
Line 175 in 32cabd2
Note also that
dde
is only a suggested package, but this makes it a true dependency.The text was updated successfully, but these errors were encountered: