Skip to contents

Create a directory using either a relative path or an absolute path.

Usage

mkdir(dir, r = TRUE)

Arguments

dir

A string indicating the directory to make.

r

A boolean that indicates whether the directories should be made recursively

Value

New directory on file system

Author

James Balamuta

Examples

# \donttest{
# Make directory from working directory
mkdir("toad")

## This assumes the computer is on Windows and the C drive exists.
# Make directory from absolute path
mkdir("C:/path/to/dir/toad")
# }