Skip to contents

Choose from various templates to be added to your project.

Usage

add_template(
  template = NULL,
  save_as = template,
  overwrite = FALSE,
  open = FALSE
)

Arguments

template

Various templates to choose from.

save_as

Name of output file.

overwrite

Logical. Whether to overwrite existing template file.

open

Logical. Whether to open file after creation.

Value

Create Rmd file(s) template(s) and return its (their) path

Examples

# For classical use in your package
if (FALSE) { # \dontrun{
# add only the dev_history file in an existing package
add_template()
} # }