knitAPS {AnalysisPageServer} | R Documentation |
This doesn't do much more than just call knitr, but it first has a bit of logic to overwrite or not the target directory. AnalysisPageServer reports are entire directories, so this is convenient to manage the creation of the report at that level.
knitAPS(template.Rmd, outdir = dirname(outfile), outfile = file.path(outdir, sub(".Rmd", ".html", basename(template.Rmd))), e = new.env(), overwrite = FALSE, ...)
template.Rmd |
Path to .Rmd template |
outdir |
Path to output directory. Default: |
outfile |
Path to output main .html file. Default is to use |
e |
Environment to pass to knitr. Default: |
overwrite |
Logical, default FALSE. This controls the behavior If outdir already exists.
In that case, if |
... |
Passed through to |
Path to filename written (that is, outfile
).
Brad Friedman