jg_fix: Fix JAGS model code

Description Usage Arguments Value

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.


poissonconsulting/jaggernaut documentation built on Feb. 18, 2021, 11:10 p.m.