Produce a zip bundle of code and results

buildScriptBundle(
code = NULL,
output_zip_path,
script_name = "script.R",
include_files = list(),
render = TRUE,
render_args = list()
)

buildRmdBundle(
report_template,
output_zip_path,
vars = list(),
include_files = list(),
render = TRUE,
render_args = list()
)

## Arguments

code A language object. A filename for the resulting zip bundle. A name for the R script in the zip bundle. A named list consisting of additional files that should be included in the zip bundle. The element names indicate the destination path within the bundle, specified as a relative path; the element values indicate the path to the actual file currently on disk, specified as either a relative or absolute path. Whether or not to call rmarkdown::render() on the R script. Arguments to provide to rmarkdown::render(). Filename of an Rmd template to be expanded by knitr::knit_expand(). A named list of variables passed along to ... in knitr::knit_expand().

## Value

The path to a generated file.