valid_gears_arg: Helper function to assure validity of gears argument

View source: R/steady.R

valid_gears_argR Documentation

Helper function to assure validity of gears argument

Description

If the gears argument contains invalid gears, then these are ignored but a warning is issued.

Usage

valid_gears_arg(object, gears = NULL, error_on_empty = FALSE)

Arguments

object

A MizerSim or MizerParams object from which the gears should be selected.

gears

The gears to be selected. Optional. By default all gears are selected. A vector of gear names.

error_on_empty

Whether to throw an error if there are zero valid gears. Default FALSE.

Value

A vector of gear names.


mizer documentation built on Oct. 17, 2024, 9:07 a.m.