wflow_start
creates a minimal workflowr project. The default
behaviour is to add these files to a new directory, but it is also
possible to populate an already existing project. By default, it
also changes the working directory to the workflowr project.
wflow_start(directory, name = NULL, git = TRUE, existing = FALSE, overwrite = FALSE, change_wd = TRUE)
directory | character. The directory for the project, e.g.
"~/new-project". When |
---|---|
name | character (default: NULL). Project name, e.g. "My Project". When
|
git | logical (default: TRUE). Should Git be used for version
control? If |
existing | logical (default: FALSE). Indicate if the specified
|
overwrite | logical (default: FALSE). Control whether to overwrite
existing files. Only relevant if |
change_wd | logical (default: TRUE). Change the working directory to the
|
Invisibly returns absolute path to workflowr project.
This is the initial function that organizes the infrastructure to create a research website for your project. Note that while you do not need to use RStudio with workflowr, do not delete the Rproj file because it is required by other functions.
vignette("wflow-01-getting-started")
not_run({ wflow_start("path/to/new-project") # Provide a custom name for the project. wflow_start("path/to/new-project", name = "My Project") # Add workflowr files to an existing project. wflow_start("path/to/current-project", existing = TRUE) # Add workflowr files to an existing project, but do not automatically # commit them. wflow_start("path/to/current-project", git = FALSE, existing = TRUE) })