Learn R Programming

rtemps (version 0.8.0)

create_rtemp: Create a new directory with the specified R template

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

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

Run this code
# NOT RUN {
create_rtemp(dirname = "tmp_dir", template = "united_html")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab