createFolders: Compile folder list and create folders

Description Usage Arguments Value Author(s) Examples

Description

Compile folder list with absolut paths and create folders if necessary.

Usage

1
2
createFolders(root_folder, folders, folder_names = NULL,
  path_prefix = "path_", create_folders = TRUE)

Arguments

root_folder

root directory of the project.

folders

list of subfolders within the project directory.

folder_names

names of the variables that point to subfolders. If not provided, the base paths of the folders is used.

path_prefix

a prefix for the folder names.

create_folders

create folders if not existing already.

Value

List with folder paths and names.

Author(s)

Christoph Reudenbach, Thomas Nauss

Examples

1
2
3
4
## Not run: 
# createFolders(root_folder = "~/edu", folders = c("data/", "data/tmp/"))

## End(Not run)

envima/envimaR documentation built on May 5, 2019, 7:09 a.m.