Make a Directory

DESCRIPTION:

Make empty directories with given names.

USAGE:

mkdir(dir, recursive = F) 

REQUIRED ARGUMENTS:

dir
a character vector with the names of directories to create.

OPTIONAL ARGUMENTS:

recursive
a logical value; if TRUE, any non-existent directories in path will be created. Default is FALSE.

VALUE:

a logical vector the length of the input containing TRUE when the directory was made. There is also an attribute called error containing a short error message describing why the C mkdir() function failed.

SIDE EFFECTS:

Directories are made.

SEE ALSO:

, , , , , .

EXAMPLES:

if(mkdir("junk")) rmdir("junk")