assertVariableExists function

Assert a variable exists in the model

Assert a variable exists in the model

assertVariableExists(ui, x) testVariableExists(ui, x)

Arguments

  • ui: rxode2 ui model
  • x: does the x variable exist in the model. If it is a vector of variable check to see if any exists, but all must be valid nlmixr2 variable names

Returns

variable that matches, in the case of multiple variables, the first that matches. If nothing matches return error

Functions

  • testVariableExists(): Test if variable exists

See Also

Other Assertions: assertCompartmentExists(), assertCompartmentName(), assertCompartmentNew(), assertRxUi(), assertVariableNew(), testIniDf(), testRxUnbounded()

Author(s)

Matthew L. Fidler