Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Preferred directory structure for R projects
## 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")
@quantixed

This comment has been minimized.

Copy link
Owner Author

@quantixed quantixed commented Jul 5, 2020

For bash/zsh:

mkdir Data;\
mkdir Output;\
mkdir Output/Data;\
mkdir Output/Plots;\
mkdir Script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment