
Render an R Markdown file summarizing the results of an Experiment or
set of Experiments.
Source: R/docs.R
create_rmd.Rdcreate_rmd() was renamed to render_docs() to create a more consistent
API.
Usage
create_rmd(
experiment,
save_dir,
write_rmd = FALSE,
output_file = NULL,
output_format = vthemes::vmodern(),
title = NULL,
author = "",
show_code = TRUE,
show_eval = TRUE,
show_viz = TRUE,
eval_order = NULL,
viz_order = NULL,
use_icons = TRUE,
quiet = TRUE,
verbose = 2,
...
)Arguments
- experiment
An
Experimentobject. If provided, documentation is created for all previously savedExperimentsthat are found in the directory given byexperiment$get_save_dir(). If noExperimentshave been previously saved under this directory, then the currentexperimentis saved to disk and used to create the documentation template.- save_dir
An optional directory in which to find previously saved
Experimentobjects. Documentation is created for these foundExperiments. Not used ifexperimentis provided.- write_rmd
Logical indicating whether or not to write out the raw R Markdown file used to generate the results. If
TRUE, both the raw R Markdown file and the rendered R Markdown output are saved to disk. IfFALSE, only the rendered R Markdown output is saved. Default isFALSE.- output_file
The name of the output file. If using
NULL, then the output filename will be based on theexperiment's root results directory and the name of theexperiment. Note that the filename may include the path to the output file.- output_format
The R Markdown output format to convert to. Must be an object of class
rmarkdown_output_format(e.g.,rmarkdown::html_document(),rmarkdown::pdf_document(), rmarkdown::md_document).- title
Character string. Title of the report. By default, this will be the name of the
experimentifexperimentis provided.- author
Character string of author names to display in knitted R Markdown document.
- show_code
Logical indicating whether or not to show code portions in the output document.
- show_eval
Logical indicating whether or not to show the results of the
Evaluatorsin the output document.- show_viz
Logical indicating whether or not to show the results of the
Visualizersin the output document.- eval_order
Vector of
Evaluatornames in their desired order for display. By default, the report will display theEvaluatorresults in the order that they were computed.- viz_order
Vector of
Visualizernames in their desired order for display. By default, the report will display theVisualizerresults in the order that they were computed.- use_icons
Logical indicating whether or not to use fontawesome icons.
- quiet
An option to suppress printing during rendering from knitr, pandoc command line and others. To only suppress printing of the last "Output created: " message, you can set
rmarkdown.render.messagetoFALSE- verbose
Level of verboseness (0, 1, 2) when knitting R Markdown. Default is 2.
- ...
Additional arguments to pass to
rmarkdown::render(). Useful for applying a custom R Markdown output theme.