Skip to contents

This function expects a list of character vectors, as returned by SBtabVFGEN::sbtab_to_vfgen. This list describes an ODE model (initial values, default parameters, transformation events, output functions). This function uses this information, calculates Jacobians via Ryacas and returns a character vector with R source code for the deSolve package.

Usage

generateRCode(odeModel)

Arguments

odeModel

a list, as returned from SBtabVFGEN::sbtab_to_vfgen()

Value

a character vector with the generated code, one vector-element is one line of code.

Details

The value can be written to a file: cat(generateRCode(odeModel),sep="\n",file=...). This file can be sourced later.