create_rtemp: Create a new directory with the specified R template

Description Usage Arguments Details Examples

View source: R/create_temp.R

Description

This function creates a new directory under the current directory, which will contain the given files of the specified template, ready to be rendered.

Usage

1
create_rtemp(dirname = "new-dir", template = "united_html")

Arguments

dirname

name of the directory to create. If not specified, a directory new-dir will be created.

template

which template to use?

Details

The available templates are: united_html (default), bookdown_lite. The name of the main .Rmd file will be index.Rmd.

Examples

1
2
3
4
## Not run: 
create_rtemp(dirname = "tmp_dir", template = "united_html")

## End(Not run)

rtemps documentation built on Jan. 8, 2021, 2:03 a.m.