Skip to contents

This function is a modification of usethis::use_template() that applies user supplied data fields to a given template file via whisker::whisker.render().

Usage

render_template(template_path, out_path, data = list(), open = TRUE)

Arguments

template_path

Path to the template file

out_path

Path to desired output location

data

list of fields to pass to the template file

open

logical - should the file be opened?

Value

Invisible

Examples

if (FALSE) {
render_template(system.file("templates/pkgdevt-script.R", package = "pkgdev"),
                ".", data = list(package_name = "testPackage"),
                open = TRUE)
}