Returns the names of arguments that should be excluded during instantiation of the specification.

getArgumentExclusions(object, ...)

# S4 method for class 'lcMethod'
getArgumentExclusions(object)

Arguments

object

The object.

...

Not used.

Value

A character vector of argument names.

Implementation

This function only needs to be implemented if you want to avoid users from specifying redundant arguments or arguments that are set automatically or conditionally on other arguments.


setMethod("getArgumentExclusions", "lcMethodExample", function(object) {
  c(
    "doPlot",
    "verbose",
    callNextMethod()
  )
})

Adding `callNextMethod()` to the end of the return vector enables inheriting exclusions from superclasses.