assert.file {StabPerf}R Documentation

Tries to guarantee the existance of a file.

Description

File is created if it does not already exist.

Usage

assert.file(file, recursive=FALSE)

Arguments

file character. Name of file to create.
recursive logical. Create directories on the path to file.

Details

Does not try to re-create an existing file (i.e does not squash files).

Value

writable logical. Whether file can be written to.

See Also

file.create, assert.write

Examples

if (!assert.file("log-file.txt")) return(FALSE)

[Package StabPerf version 0.5 Index]