create_template: Create skeleton directories and files for a new template

Description Usage Arguments Details

Description

The function rmarkdown::draft() uses a defined directory structure under "rmarkdown/templates" to instantiate new documents. This function create_template() creates a new skeleton infrastructure for a new template.

Usage

1
create_template(psTemplateName, psPkgDir = ".")

Arguments

psTemplateName

name of the template to be created

psPkgDir

Package directory

Details

In principle, we are doing meta-templating here. We use a generic template and create a more specific template based on that. The generic template is stored as template of this package "rcoursetools". From this the template infrastructure is copied to the target package from where it can be used as ordinary template.


charlotte-ngs/rcoursetools documentation built on May 13, 2019, 3:34 p.m.