listDirectory | R Documentation |
Gets the file names in the directory.
Contrary to list.files()
, this method guarantees to work
recursively. Moreover, when subdirectories are processed recursively,
directory names are also returned.
## Default S3 method:
listDirectory(path=".", pattern=NULL, recursive=FALSE, allNames=FALSE, fullNames=FALSE,
...)
path |
A path to be listed. |
pattern |
A |
recursive |
If |
allNames |
If |
fullNames |
If |
... |
Not used. |
Returns a vector
of file names.
Recursive searching of directory structure is done breath-first in a lexicographic order.
Henrik Bengtsson
Internally list.files
() is used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.