R.utils (version 1.6.4)

removeDirectory: Removes a directory

Description

Removes a directory, and if requested, also its contents.

Usage

## S3 method for class 'default}(path, recursive=FALSE, mustExist=TRUE, ...)':
removeDirectoryundefined

 path{A character string specifying the directory to be removed.}
   recursive{If TRUE, subdirectories and files are also removed.
     If FALSE, and directory is non-empty, an exception is thrown.}
   mustExist{If TRUE, and the directory does not exist,
     an exception is thrown.}
   ...{Not used.}

 Returns (invisibly) TRUE, the directory was successfully removed,
  otherwise FALSE, unless an exception is thrown.



 [object Object]

 Internally unlink() is used.



IO
programming

Arguments