Created June 10, 2020 08:59
Save quantixed/42625f988a7b5da25b7e333c4a660b97 to your computer and use it in GitHub Desktop.
Preferred directory structure for R projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
## Setup preferred directory structure in wd | |
ifelse(!dir.exists("Data"), dir.create("Data"), "Folder exists already") | |
ifelse(!dir.exists("Output"), dir.create("Output"), "Folder exists already") | |
ifelse(!dir.exists("Output/Data"), dir.create("Output/Data"), "Folder exists already") | |
ifelse(!dir.exists("Output/Plots"), dir.create("Output/Plots"), "Folder exists already") | |
ifelse(!dir.exists("Script"), dir.create("Script"), "Folder exists already") |
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
For bash/zsh: