mkdir: Create Directory

Description Usage Arguments Value See Also Examples

View source: R/mkdir.R

Description

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

Usage

1
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 a new directory.

rmdir removes an empty directory.

clean can be used to remove non-empty directories.

TAF-package gives an overview of the package.

Examples

1
2
3
4
5
6
7
8
## Not run: 
mkdir("emptydir")
rmdir("emptydir")

mkdir("outer/inner")
rmdir("outer", recursive=TRUE)

## End(Not run)

TAF documentation built on April 7, 2021, 5:06 p.m.