R/compile_metajags.R

# compile function and environment for metajags: used to translate quoted R 
# expression into model_code objects that represent JAGS code.
# 
# Author: Matthew Kay
###############################################################################

# We keep all of the "meat" of the compilation code in separate environments.
# See the comment for model_code_environment at the top of model_code.R
metajags_compile_environment = copy_environment(compile_environment)
local({


## META-PROGRAMMING CONSTRUCTS
#Unlike Stan, JAGS does not have its own if statement, so we can use
#the if {} else {} syntax for metaprogramming in metajags
compile.if = compile.IF


}, metajags_compile_environment)
mjskay/metabayes documentation built on May 23, 2019, 1:05 a.m.