Skip to contents

Use a template file

Usage

use_template(.template_name = NULL, ..., .overwrite = FALSE, .destfile = NULL)

Arguments

.template_name

if not given a dialog will be presented with the options

...

supplied as parameters to the template. template placeholders such as `xxx.#name#_yyy`, will be substituted with xxx.myname_yyy if name="myname". The first value of this list will be used for `##` placeholders

.overwrite

overwrte the destination file if it exists

.destfile

if given will write the expanded template here.

Value

the written file name