View source: R/initialize_project.R
initialize_project | R Documentation |
automatically creates project directory and creates .Rproj file
initialize_project(
path,
sub_dirs = c("analysis_scripts", "preproc_scripts", "support_fx", "data_raw",
"data_preproc", "figures", "results", "reports"),
git_setup = TRUE,
open = TRUE,
readme_text = paste0("Welcome to ", basename(path), "!")
)
path |
full path of the project directory to be created |
sub_dirs |
character vector of high-level directories to add. Defaults to DEPENd Lab standard practice. |
git_setup |
logical. intitialize new git repository and perform initial commit |
open |
logical. open newly Rstudio project |
description |
text to display in README.md |
make sure to install github CLI to use gh commands: https://github.com/cli/cli#installation. Flesh this out at a later date
Nate Hall
## Not run:
initialize_project("~/Documents/github_repos/dimt_analysis")
initialize_project("~/Documents/github_repos/dimt_analysis", git_setup = FALSE) # just creates directory structure with no git integration
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.