Compile a model if neededSource:
This is the compilation workhorse creating the rxode2 model DLL files.
rxCompile( model, dir, prefix, force = FALSE, modName = NULL, package = NULL, ... ) # S3 method for rxModelVars rxCompile( model, dir = NULL, prefix = NULL, force = FALSE, modName = NULL, package = NULL, ... ) # S3 method for character rxCompile( model, dir = NULL, prefix = NULL, force = FALSE, modName = NULL, package = NULL, ... ) # S3 method for rxDll rxCompile(model, ...) # S3 method for rxode2 rxCompile(model, ...)
This is the ODE model specification. It can be:
a string containing the set of ordinary differential equations (ODE) and other expressions defining the changes in the dynamic system.
a file name where the ODE system equation is contained
An ODE expression enclosed in
(see also the
filenameargument). For details, see the sections “Details” and
This is the model directory where the C file will be stored for compiling.
in a temporary directory, If unspecified, the C code is stored then the model is compiled and moved to the current directory. Afterwards the C code is removed. in the specified directory If specified, the C code is stored in that directory. The C code is not removed and then compiled in the same directory. This can be after the DLL is created -code outputs.useful to debug the c
is a string indicating the prefix to use in the C based functions. If missing, it is calculated based on file name, or md5 of parsed model.
is a boolean stating if the (re)compile should be forced if rxode2 detects that the models are the same as already generated.
a string to be used as the model name. This string is used for naming various aspects of the computations, including generating C symbol names, dynamic libraries, etc. Therefore, it is necessary that
modNameconsists of simple ASCII alphanumeric characters starting with a letter.
Package name for pre-compiled binaries.
Other arguments sent to the
An rxDll object that has the following components