
Register model functions whose calls must not be shared or skipped
Source:R/rxImpure.R
rxImpureFun.RdrxOptExpr() and the rxode2.fullOpt code generation treat user R
functions, rxFun() C functions and C functions from other packages as
pure: the same arguments give the same value with no side effects, so
repeated calls are evaluated once and a call whose result is unused may
be left out, and a line whose arguments hold for the subject is computed
once per subject (options(rxode2.subjConst)). Random draws, simeta() and simeps() are always impure;
register any other function that draws random numbers, keeps state or
has side effects so every call is kept. Registration changes the
generated code, so models compiled afterwards are recompiled.
Value
rxImpureFun() and rxRmImpureFun() invisibly return the
registered names; rxImpureFun() without name returns them
visibly
See also
Other User functions:
linMod(),
mix(),
rxD(),
rxFun(),
rxIntToBase(),
rxIntToLetter(),
rxUdfUiControl(),
rxUdfUiData(),
rxUdfUiEst(),
rxUdfUiExpr(),
rxUdfUiFlag(),
rxUdfUiIniDf(),
rxUdfUiIniLhs(),
rxUdfUiIsValue(),
rxUdfUiLhs.dist(),
rxUdfUiMv(),
rxUdfUiNum(),
rxUdfUiParsing()