dev_copy_template: Copy template with string substitution

Description Usage Arguments

View source: R/dev-use_utils.R

Description

Copy a template onto a destination while replacing expressions inside triple curly braces {{{ and }}}.

Usage

1
2
3
4
5
6
7
dev_copy_template(
  template,
  destination,
  overwrite = FALSE,
  skip = TRUE,
  envir = parent.frame()
)

Arguments

template

location inside the inst/template folder

destination

where rendered file will be located

overwrite

whether to overwrite the file if needed

skip

if exists and not overwrite, skip instead of error


tjpalanca/tjutils documentation built on Jan. 20, 2021, 2:01 p.m.