generate_files {cookiecutter} | R Documentation |
Generate a new directory from a template, given a predefined context
Description
Generate a new directory from a template, given a predefined context
Usage
generate_files(
template_dir,
output_dir,
context = list(),
context_prefix = NA,
exclude = c(),
overwrite = FALSE
)
Arguments
template_dir |
Template directory to copy |
output_dir |
Target directory to copy to (defaults to project directory) |
context |
Data available in templates |
context_prefix |
Prefix key to apply to context data (see description) |
exclude |
Files to exclude, as an array of paths with respect to the template directory |
overwrite |
Whether to overwrite existing files |
[Package cookiecutter version 0.1.0 Index]