chunkify: Generate R Markdown code chunks.

Description Usage Arguments Value Examples

View source: R/chunkify.R

Description

Generate R Markdown code chunks.

Usage

1
chunkify(stem, vals, chunk_opts = NULL)

Arguments

stem

Sequence of unchanging characters in the code chunk label.

vals

A vector containing the levels or values to paste together with stem.

chunk_opts

An optional string containing any code chunk options to include in the code chunk header.

Value

No value is returned. A sequence of code chunks equal to the length of vals is output to the console. These can then be pasted into the .Rmd.

Examples

1
chunkify(stem = "chunk_name", vals = letters[1:6], chunk_opts = "fig.height=12, fig.width=12")

cb-42/cbmbtools documentation built on Jan. 9, 2021, 1:38 a.m.