
Is this an engine?
is_nowcast_engine.RdTests whether an object is a nowcasting engine – the specification built by
engine() that says which modelling package to use and how to configure it.
A bare package name is not an engine, which is what this is usually used to
check.
See also
engine() to build one; nowcast_engines for the engines that ship with the
package; run_nowcast(), which takes one.
Examples
## Built by engine(): yes.
is_nowcast_engine(engine("baselinenowcast"))
#> [1] TRUE
# The name of a package on its own: no.
is_nowcast_engine("baselinenowcast")
#> [1] FALSE