View source: R/project_management.R
| setup_analysis_project | R Documentation |
Set up simple folder structure and template files for analysis project.
setup_analysis_project(
folder = here::here(),
analyses = c("data_prep", "analyses", "presentation"),
pipeline_name = "outputs",
code_folder = FALSE,
standard_packages = c("magrittr", "here", "dplyr"),
github_packages = NULL
)
folder |
Root folder of the project to be set up. Defaults to here::here() |
analyses |
Character vector of analysis steps. R files will be set up in order. |
pipeline_name |
Name of folder for outputs from each analysis step |
code_folder |
Logical. Should code files be placed in /code subfolder. Otherwise, are placed in root folder |
standard_packages |
Character vector of packages to be loaded at start of each analysis file. |
github_packages |
Character vector of packages to be loaded and installed from Github if needed at start of each analysis file. |
The structure is based on https://towardsdatascience.com/how-to-keep-your-research-projects-organized-part-1-folder-structure-10bd56034d3a, with some simplifications and additions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.