assert.dir {StabPerf} | R Documentation |
If directory does not exist, it will be created if possible.
assert.dir(dir)
dir |
character. Path to directory to be created. |
Directory creation is recursive. It is not an error if the directory already exists.
writable |
logical. Whether directory can be written (FALSE when directory could not be created). |
assert.file
, assert.write
, dir.create
if (!assert.dir("log-dir")) return(FALSE)