Stops with an informative error if the object's extension chain is not a
suffix of the session's registered maximal chain, or (when check_class is
TRUE) if the object does not inherit from the expected S4 marker class.
assertExtensionChain(
object,
extensions = objectExtensions(object),
check_class = TRUE
)Invisibly TRUE. Called for its side-effect of stopping on
incompatibility.
A MizerParams or MizerSim object.
Named character vector giving the object's extension chain.
Defaults to objectExtensions() applied to object.
Logical. If TRUE (default), also verify that object
inherits from the expected S4 marker class.