Transforms a function call into an Rmarkdown chunk
add_chunk(
report = NULL,
dt_expr = NULL,
fun,
params,
chunk_title = NULL,
title_level = 2,
echo = FALSE,
message = FALSE,
warning = FALSE,
fig_width = NULL,
fig_height = NULL
)
Character string containing the text of an Rmarkdown report header (and possibly more chunks). Easily create one with chronicle::new_report(), and if NULL, this will be the default value.
Expression of the table to run function on.
Function to call.
List of parameters to be passed to fun.
Title of the Rmarkdown chunk. If NULL, chronicle will try to parse a generic title based on the function and parameters passed using make_title()
Level of the section title of this plot (ie, number of # on Rmarkdown syntax.)
Whether to display the source code in the output document. Default is FALSE.
Whether to preserve messages on rendering. Default is FALSE.
Whether to preserve warnings on rendering. Default is FALSE.
Width of the plot (in inches).
Height of the plot (in inches).
An rmarkdown chunk as a character string.