If the required template dependency files aren't present, copy them from the requested package. Existing files are not overwritten by default. This function will copy dependency files from a requested package inside the rmarkdown/shared/ directory. If a package doesn't contain this subdirectory, the function will return an error.

prepareTemplate(package = NULL, overwrite = FALSE)

Arguments

package

character(1) or NULL. Name of package containing the R Markdown template. If NULL, only the basic shared files defined in the basejump package will be copied.

overwrite

logical(1). Should existing destination files be overwritten?

Value

Invisible logical. Was the file copied?.

Details

This code is used internally by:

Note

Updated 2019-07-28.

Examples

## RNA-seq template. ## > prepareTemplate(package = "bcbioRNASeq") ## Single-cell RNA-seq template. ## > prepareTemplate(package = "bcbioSingleCell")