jg_fix: Fix JAGS model code

Description Usage Arguments Value See Also

Description

Fixes JAGS model code. Currently only drops blocks with invalid names and reorders blocks (JAGS requires blocks to be ordered).

Usage

1
jg_fix(x, extended = FALSE)

Arguments

x

string of JAGS model code

extended

flag of whether to allow extended BUGS language.

Value

If successful a string of the fixed code. If fails issues warning and returns FALSE.

See Also

juggler


poissonconsulting/juggler documentation built on Feb. 18, 2021, 11:12 p.m.