export_template: Export a built-in script template

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/export_template.R

Description

Export to a file a built-in script template. This way it's possible to adapt it to user's needs. Basically, it's a wrapper for the file.copy function.

Usage

1
export_template(builtin = "template_en.R", to = "./template_en.R")

Arguments

builtin

name of the built-in template. See details.

to

path where the file have to be written

Details

Actually, built-in templates are : \Sexpr{library(vartors);paste0(list_templates(), collapse = ", ")}

Value

Return the path where the file template was written. If there is an error, return FALSE.

Author(s)

Joris Muller

See Also

import_template

Examples

1
2
3
4
5
# export the default built-in template
## Not run: 
export_template("template_to_edit.R", "en.R")

## End(Not run)

jomuller/vartors documentation built on May 19, 2019, 7:26 p.m.