View source: R/create.project.R
create.project | R Documentation |
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
template
argument can be set to minimal
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
.
create.project(
project.name = "new-project",
template = "full",
dump = FALSE,
merge.strategy = c("require.empty", "allow.non.conflict"),
rstudio.project = FALSE
)
project.name |
A character vector containing the name for this new project. Must be a valid directory name for your file system. |
template |
A character vector containing the name of the template to
use for this project. By default a |
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 |
rstudio.project |
A boolean value indicating whether the project should
also be an 'RStudio Project'. Defaults to |
If the target directory does not exist, it is created. Otherwise, it can only contain files and directories allowed by the merge strategy.
No value is returned; this function is called for its side effects.
load.project
, get.project
,
cache.project
, show.project
library('ProjectTemplate')
## Not run: create.project('MyProject')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.