Conversion of Character Vector into Stan Code Block List
as_stan_fragments(x, stan_blocks = STAN_BLOCKS)
A list with the Stan code blocks.
the single Stan code vector.
reference list of stan blocks.
Craig Gower-Page (from jmpost
R package)
Function only works if code is in format
data {
<code>
}
model {
<code>
}
That is to say we do not support code in inline format i.e.
data { <code> }
model { <code> }