read_macro: Read in a macro file

Description Usage Arguments Value

View source: R/read_macro.r

Description

Read in a macro file

Usage

1
2
read_macro(file, macro_code = readLines(file),
  .glue_control = list(.open = "{|", .close = "|}"))

Arguments

file

file name to read in; ignored if 'macro_code' is used

macro_code

text representation of the macro;

.glue_control

list of control arguments to pass to 'glue::glue_data'

Value

a stan_macro object, which is a function that returns parsed macro code


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