Skip to contents

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.

Usage

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?.

Note

Updated 2023-09-28.

Examples

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

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