My report


This example shows how to generate chunk labels dynamically with the brew syntax. It was motivated by the SO question:

src = NULL
pat_brew()  # use brew syntax first

for (cur.cyl in unique(mtcars$cyl)) {
  src = c(src, knit(text = readLines('041-label-i-child.tpl')))

# continue with markdown syntax and hooks
# knit the generated R markdown source
out = knit(text = src)

Generate report for each level of cylinder variable

cat(out, sep = '\n')

Try the parsermd package in your browser

Any scripts or data that you put into this service are public.

parsermd documentation built on May 20, 2021, 5:08 p.m.