assert.dir {StabPerf}R Documentation

Tries to guarantee the existance of a directory.

Description

If directory does not exist, it will be created if possible.

Usage

assert.dir(dir)

Arguments

dir character. Path to directory to be created.

Details

Directory creation is recursive. It is not an error if the directory already exists.

Value

writable logical. Whether directory can be written (FALSE when directory could not be created).

See Also

assert.file, assert.write, dir.create

Examples

if (!assert.dir("log-dir")) return(FALSE)

[Package StabPerf version 0.5 Index]