Open hillalex opened 3 years ago
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
Just indicating in the docs that dde
is a requirement for discrete models would be a quick improvement.
yeah, that's easy enough to add. Also probably a better error message?
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: https://github.com/mrc-ide/odin/blob/32cabd2e1098fadddc37de0c10d2b81004419790/R/wrapper.R#L175Note also that
dde
is only a suggested package, but this makes it a true dependency.