createProject: Create a modified ProjectTemplate project.

Description Usage Arguments Details Value Note

Description

Create a modified ProjectTemplate project.

Usage

1
2
createProject(project = "myProject", path = getOption("gsmisc.proj"),
  merge_strategy = c("require.empty", "allow.non.conflict"), open = TRUE)

Arguments

project

A character vector with the name of the project directory.

path

The base directory of the project.

merge_strategy

What should happen if the target directory exists and is not empty? If "force.empty", the target directory must be empty; if "allow.non.conflict", the method succeeds if no files or directories with the same name exist in the target directory.

open

If TRUE, open the newly created project in RStudio.

Details

If the target directory does not exist, it is created. Otherwise, it can only contain files and directories allowed by the merge strategy.

Value

No value is returned; this function is called for its side effects.

Note

This function is slightly modified code taken from the create.project function in John Myles White's ProjectTemplate package to allow me using my custom directory structure.


gschofl/gsmisc documentation built on May 17, 2019, 8:52 a.m.