Preferred directory structure for R projects
This file contains 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 free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For bash/zsh: