RxODE (version 0.9.0-8)

rxSplitLines: Split line into multiple lines at + or - breaks

Description

Split line into multiple lines at + or - breaks

Usage

rxSplitLines(lhs, rhs, limit = 1100)

Arguments

lhs

Left handed side to construct

rhs

Right handed side to construct

limit

the number of characters for the expression to be before it is split. By default this is 1100

Value

an expression where the lhs is constructed iteratevly by splitting the lhs and adding it iteratevly to the lhs.

For example:

lhs = 1 + 2 + 3

Would become

lhs = 1 lhs = lhs + 2 lhs = lhs + 3

When calling rxSplitLines("lhs", "1+2+3", 0)

This is to deal with the unwieldly lines that sometimes come out of SymPy.