Skip to contents

A validated bundle of arguments destined for one external fitting engine, produced by an engine constructor such as SusieOptions() or MrmashOptions() rather than written as a bare list. Names are checked against the engine's own formals at construction, so a misspelled option fails immediately instead of being silently dropped.

It is a SimpleList: $, [[, names() and length() behave as on a list, it splices into a call with !!!, and subsetting returns a MethodOptions rather than degrading to a plain list. The engine name and the callee it forwards to travel in metadata().

Usage

# S4 method for class 'MethodOptions'
show(object)

Arguments

object

A MethodOptions object.

Value

show is called for its side effect and returns invisible(NULL).

Whether argument names are checked

A constructor checks the names you give it against the live formals of the function it forwards to, so the check can never drift from the version of that package you have installed. Printing a MethodOptions says which applies to it.

Names cannot be checked in two situations, and in both the arguments are forwarded unchecked rather than rejected:

Every other engine enumerates its arguments, so a misspelling is an error at the call site naming the accepted set. Constructors for pecotmr's own engines take no ... at all, so R itself rejects an unknown name as an unused argument.