Removes all files in a cache file directory.
# S3 method for default
clearCache(path=getCachePath(...), ..., recursive=FALSE, prompt=TRUE && interactive())
Returns (invisibly) a character
vector
of pathnames of the
files removed. If no files were removed, NULL
is returned.
A character
string specifying the directory to be cleared.
By default, the path is what is returned by getCachePath
()
which arguments ...
are also passed.
Arguments passed to getCachePath
(), especially
argument dirs
to specify subdirectories.
If TRUE
, subdirectories are also removed, otherwise
just the files in the specified directory.
If TRUE
, the user will be prompted to confirm that
the directory will cleared before files are removed.
Henrik Bengtsson
If the specified directory does not exists, an exception is thrown.