setup_dirs: set up the directory structure

Description Usage Arguments Value Examples

Description

Set up a directory structure for a standard data analyis project.

Usage

1
2
setup_dirs(path, structure = c("Data", "Data_Processed", "Functions",
  "Graphs", "Reports"), recursive = TRUE)

Arguments

path

The path is the main path where the directory structure will be created.

structure

a character vector with the relative paths that have to be created.

recursive

logical. Should elements of any path other than the last be created? See also dir.create

Value

a logical vector (invisibly) indicating whether the creation of the directory worked.

Examples

1
2
3
4
## Not run: 
setup_dirs(getwd(), c("Data/raw","Data/processed","Output"))

## End(Not run)

JoFAM/daprojects documentation built on May 13, 2019, 8:19 a.m.