Skip to contents

[Experimental]

Tests 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.

Usage

is_nowcast_engine(x)

Arguments

x

An object.

Value

A single TRUE or FALSE.

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