makecodechunk {qreport} | R Documentation |
makecodechunk
Description
Create Text for Running Code Chunk
Usage
makecodechunk(
cmd,
opts = NULL,
results = "asis",
lang = "r",
callout = NULL,
h = NULL,
w = NULL
)
Arguments
cmd |
character string vector of commands to run inside chunk |
opts |
optional list of chunk options, e.g. |
results |
format of results, default is |
lang |
language for the chunk |
callout |
an optional Quarto callout to include after |
h |
optional height to place after the chunk header after |
w |
optional width |
Details
Creates text strings suitable for running through knitr
. The chunk is given a random name because certain operations are not allowed by knitr
without it.
Value
character vector
Author(s)
Frank Harrell
Examples
makecodechunk('x <- pi; print(x)')
[Package qreport version 1.0-1 Index]