Learn R Programming

⚠️There's a newer version (2.0.19) of this package.Take me there.

rxode2parse

The goal of rxode2parse is to split off the ‘rxode2’ parsing from the ode solving and C compilation of models. This can allow the rxode2 ui to be in a R only package (which is easier to update and check).

Installation

You can install the development version of rxode2parse from GitHub with:

# install.packages("devtools")
devtools::install_github("nlmixr2/rxode2parse")

Examples

This is mostly to parse an rxode2 model and generate information about it; eventually it will produce code but here it simply generates model variables:

rxode2parse("a=3")

Copy Link

Version

Install

install.packages('rxode2parse')

Monthly Downloads

27

Version

2.0.18

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Matthew Fidler

Last Published

January 30th, 2024

Functions in rxode2parse (2.0.18)

.udfCallFunArg

Get the function name with the current arguments as a string
.rxSEeqUsr

Return the equivalents symengine user functions from C
.convertId

Convert a factor/char to an id
.udfEnvReset

Lock/Unlock environment for getting R user functions
rxode2parse

Internal translation to get model variables list
.extraCnow

Get the extraCnow for compiling
.getLastIdLvl

Get the last idLvl
.udfEnvSet

Setup the UDF environment (for querying user defined funtions)
rxode2parseGetPackagesToLoad

Control the packages that are loaded when a rxode2 model dll is loaded
.extraC

Generate extraC information for rxode2 models
.linCmtSens

Is the linear systems with gradients built-in
.symengineFs

Return symengineFs from user functions
.udfEnvSetUdf

Use the udf model variable information to get the environment where the functions exists
.rxTransInfo

Get the information about the rxode2 derived parameter transformation
print.rxModelVars

Print Values
etTransParse

Event translation for rxode2
.rxode2parseFunPtrs

Return a list of the function parameters to hook into
.toClassicEvid

This converts NONMEM-style EVIDs to classic RxODE events
forderForceBase

Force using base order for rxode2 radix sorting
rxode2parseAssignPointerTranslation

This sets function gets the currently assigned function pointer assignments
.udfExists

See if the UI function exists in given environment.
rxode2parseAssignTranslation

This assigns the c level linkages for a roxde2 model
rxDerived

Calculate derived parameters for the 1-, 2-, and 3- compartment linear models.
rxode2parseD

This gives the derivative table for rxode2
.udfMd5Info

Get the udf strings for creating model md5
rxode2parseGetPointerAssignment

This function gets the currently assigned function pointer assignments
rxFunParse

Add user function to rxode2
rxode2parseGetTranslation

This function gets the currently assigned translations
rxSetIni0

Set Initial conditions to time zero instead of the first observed/dosed time
rxParseSuppressMsg

Respect suppress messages
rxParseSetSilentErr

Silence some of rxode2's C/C++ messages
rxode2parseMd5

Get the MD5 hash of the current language revision
.getWh

Get the internal breakdown of an evid
.rxC

Return the C code of an internal function