assert.write {StabPerf}R Documentation

Determines if a file or directory is writable.

Description

Prints warning and returns false when no write permission to a path exists.

Usage

assert.write(path)

Arguments

path character. Path to file or directory

Value

writable logical.

See Also

file.access

Examples

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

[Package StabPerf version 0.5 Index]