removeDirectory

0th

Percentile

Removes a directory

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

Keywords
programming, IO
Usage
## S3 method for class 'default':
removeDirectory(path, recursive=FALSE, mustExist=TRUE, ...)
Arguments
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, a the directory does not exist, an exception is thrown.
...
Not used.
Value

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

See Also

Internally unlink() is used.

Aliases
  • removeDirectory.default
  • removeDirectory
Documentation reproduced from package R.utils, version 1.3.3, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.