Create a project template. See https://rstudio.github.io/rstudio-extensions/rstudio_project_templates.html for more information.

createProjectTemplate(
  package = ".",
  binding,
  title,
  subtitle = paste("Create a new", title),
  caption = paste("Create", title),
  icon = NULL,
  open_files = NULL,
  overwrite = FALSE,
  edit = TRUE
)

Arguments

package

The path to an package sources.

binding

The skeleton function to associate with this project template. This is the name of the function that will be used to initialize the project.

title

The title to be shown within the New Project... wizard.

subtitle

(optional) The subtitle to be shown within the New Project... wizard.

caption

(optional) The caption to be shown on the landing page for this template.

icon

(optional) The path to an icon, on disk, to be used in the dialog. Must be an .png of size less than 64KB.

open_files

(optional) Files that should be opened by RStudio when the project is generated. Shell-style globs can be used to indicate when multiple files matching some pattern should be opened -- for example, OpenFiles: R/*.R would indicate that RStudio should open all .R files within the R folder of the generated project.

overwrite

Boolean; overwrite a pre-existing template file if one exists?

edit

Boolean; open the file for editting after creation?