parse_stan_macros: Applies macros to a stan file

Description Usage Arguments Value

View source: R/old/parse_stan_macros.r View source: R/parse_macro.r

Description

Applies macros to a stan file

Usage

1
2
parse_stan_macros(input, output_file, macro_list = list(),
  macro_files = list(), ..., .validate_output = TRUE)

Arguments

input

stan code or file name

output_file

file name to output

macro_list

named list of macro definitions

macro_files

named list of macro file names

...

additional named macro definitions

.validate_output

check to make sure output stan file is valid

Value

the parsed stan code if 'out_file = NA'; otherwise 'out_file'


Christopher-Peterson/macroStan documentation built on Oct. 30, 2019, 5:42 a.m.