Learn R Programming

icesTAF (version 1.3-2)

mkdir: Make Directory

Description

Create directory, including parent directories if necessary, without generating a warning if the directory already exists.

Usage

mkdir(path)

Arguments

path

a directory name.

Value

TRUE for success, FALSE for failure, invisibly.

See Also

dir.create is the base function to create an empty directory.

unlink with recursive = TRUE removes directories.

icesTAF-package gives an overview of the package.

Examples

Run this code
# NOT RUN {
mkdir("emptydir")
unlink("emptydir", recursive=TRUE)

mkdir("outer/inner")
unlink("outer/inner", recursive=TRUE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab