Learn R Programming

mrgsolve (version 1.5.1)

modelparse: Parse model specification text

Description

Parse model specification text

Usage

modelparse(txt, split = FALSE, drop_blank = TRUE, comment_re = c("//", "##"))

modelparse_rmd(txt, split = FALSE, drop_blank = TRUE, comment_re = "//")

Arguments

txt

model specification text

split

logical

drop_blank

logical; TRUE if blank lines are to be dropped

comment_re

regular expression for comments

Examples

Run this code
file <- file.path(modlib(), "pk1.cpp")

modelparse(readLines(file))

Run the code above in your browser using DataLab