assertVariableExists: Assert a variable exists in the model

View source: R/assert.R

assertVariableExistsR Documentation

Assert a variable exists in the model

Description

Assert a variable exists in the model

Usage

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

Value

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

Functions

  • testVariableExists(): Test if variable exists

Author(s)

Matthew L. Fidler

See Also

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


nlmixr2/rxode2 documentation built on Jan. 11, 2025, 8:48 a.m.