ProjectTemplate (version 0.7)

create.project: Create a new project.

Description

This function will create all of the scaffolding for a new project. It will set up all of the relevant directories and their initial contents. For those who only want the minimal functionality, the minimal argument can be set to TRUE to create a subset of ProjectTemplate's default directories. For those who want to dump all of ProjectTemplate's functionality into a directory for extensive customization, the dump argument can be set to TRUE.

Usage

create.project(project.name = "new-project", minimal = FALSE,
  dump = FALSE, merge.strategy = c("require.empty", "allow.non.conflict"))

Arguments

project.name

A character vector containing the name for this new project. Must be a valid directory name for your file system.

minimal

A boolean value indicating whether to create a minimal project or a full project. A minimal project contains only the directories strictly necessary to use ProjectTemplate and does not provide template code for profiling, unit testing or documenting your project.

dump

A boolean value indicating whether the entire functionality of ProjectTemplate should be written out to flat files in the current 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.

Value

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

Details

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

See Also

load.project, get.project, cache.project, show.project

Examples

Run this code
# NOT RUN {
library('ProjectTemplate')

# }
# NOT RUN {
create.project('MyProject')
# }

Run the code above in your browser using DataLab