create_directory: Function to create directories if they are not present.

View source: R/create_directory.R

create_directoryR Documentation

Function to create directories if they are not present.

Description

If the directory exists, no function will be called. create_directory will create multiple levels of directories (it is recursive).

Usage

create_directory(directory, quiet = TRUE)

Arguments

directory

Name or path of directory to be created if id does not exist.

quiet

Should the function give a message when a directory is created? Default is FALSE.

directory can take many values and is recursive.

Author(s)

Stuart K. Grange

Examples

## Not run: 

# Create a directory
create_directory("data_dump")

# Create two directories
create_directory(c("data_dump", "new_directory"))


## End(Not run)


skgrange/threadr documentation built on April 15, 2024, 9:35 p.m.