new_project {lehuynh} | R Documentation |
Create a new project
Description
This function sets up a new project within an active R project for reproducible purposes.
Usage
new_project()
Details
The project includes:
-
README.md: the top level description of content in the project
-
Makefile
different folders to hold all data, code, results of data analysis, and documents related to the project
templates: manuscript.Rmd, code.R, etc.
Value
A project containing folders and files for reproducible purposes.
Note
The function should be executed within an active project.
Recommended workflow:
Create a GitHub repository for the new project. At Initialize this repository with a README, choose NO.
Create a new RStudio Project via
git clone
.Use function
new_project()
to generate folders and file templates.
References
Reproducibile Research Tutorial Series by Pat Schloss.
Examples
if(interactive()){
new_project()
}