chunkerize | R Documentation |
This function creates multiple code chunks from a function and along arguments marked with a star (*). Each of these special arguments is a list. The nth code chunk will use the nth element of each marked list (recycled if necessary) as argument.
chunkerize(
FUN,
arg.names,
arg.values,
type = "block",
echo = FALSE,
warning = FALSE,
error = FALSE,
message = TRUE,
fig.width = 4,
fig.height = 4,
fig.align = "center",
options = NULL
)
FUN |
the function to use for the chunks. |
arg.names |
a character vector giving the argument names of |
arg.values |
a vector giving the values or object names to assign to
each argument given with |
type |
the type of chunk to produce. Can be " |
echo |
logical indicating whether to include R source code in the result. |
warning |
logical indicating whether to print warnings in the result. |
error |
logical indicating whether to stop on errors. |
message |
logical indicating whether to print messages in the result. |
fig.width, fig.height |
numeric value setting width and height of the plots in inches. |
fig.align |
character string setting the alignment of the plots. Can be " |
options |
a character string to specify the knitr options. This will overwrite the options set with the other arguments. |
a character vector of R code chunks which can be evaluated by knitr.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.