Creates a standardized project folder structure with index.qmd files. The structure includes: - script/: code - source/: raw input data - derived/: intermediate/computed results - output/: final outputs - story/: analysis narratives & reports - story/source/: source documentation - story/output/: output documentation
init_project(name, root = ".")Invisible NULL. Creates directories and index.qmd files for their side effects.
Index.qmd files are created in the root, script/, story/source/, and story/output/ folders. The root index.qmd includes links to these three main sections.
if (FALSE) { # \dontrun{
# Initialize project structure in current directory
init_project("MyAnalysis")
# Initialize in a specific directory
init_project("MyAnalysis", "path/to/project")
} # }