Added ability to query R user functions in a rxode2 model (will force single threaded solve)
rxRmFunParse here so that C and R user function clashes can be handled
Model variables now tracks which compartments have a lag-time defined
For compartment with steady state doses (NONMEM equivalent SS=1, SS=2), an additional tracking time-point is added at to track the time when the lagged dose is given. As an upshot, the lagged dose will start at the steady state concentration shifted by + ii - lag in
rxode2 (currently for ode systems only)
This release calculates non bio-availability adjusted duration for all rates instead of trying to figure the rate duration during solving.
Make double assignment an error, ie
a <- b <-
NA times are ignored (with warning)
Steady state bolus doses with
addl are treated as non steady state events (like what is observed in
Timsort was upgraded; drop radix support in rxode2 structure
Security fixes were applied as requested by CRAN
data.tableexplicitly in the R code (before was imported only in C/C++ code)
‘linCmt()’ translations of ‘alpha’, ‘beta’, ‘gamma’, ‘k21’, ‘k31’, ‘vc’ now error instead of ignoring ‘gamma’ and ‘k31’ to give 2 cmt solution
transit compartment internal code now changes dose to 0.0 when no dose has been administered to the depot compartment. This way dosing to the central compartment (without dosing to the transit compartment) will not give a
NA for the depot compartment (and consequently for the central compartment)
rxDerived here and added tests for it here as well.
etTransParse here and added tests for it here as well (makes up most of
etTrans). In addition the following changes were made to
The internal translation (
etTrans()) will not drop times when infusions stop. Before, if the infusion stopped after the last observation the time when the infusion stopped would be dropped. This interferes with
Breaking change/bug fix
evid=2 are considered observations when translating data to internal
rxode2 event structure
Fix edge case to find infusion duration when it is the first item of the dosing record at time 0.
Fixed a bug for certain infusions where the
ss data items were dropped from the output when
Also have internal functions to convert between classic NONMEM events and rxode2 events
Have an internal function that gives information on the linear compartmental model translation type, which could be useful for babelmixr2
‘time’ in model is now case insensitive
Use function declaration in
rxode2parseGetTranslation() to determine thread safety of functions available to rxode2
Add check for correct number of function arguments to parser.
Like R, known functions can be assigned as a variable and the function can still be called (while not changing the variable value). For example you can have a variable
gamma as well as a function
Fix garbled error messages that occur with certain messages.
Fixed errors that occurred when using capitalized AMT variables in the model.
Bug fix for strict prototypes
sprintf as noted by CRAN
rxode2parse dll binary independent of