DirSource: Directory Source
Description
Constructs a directory source.Usage
## S3 method for class 'character':
DirSource(directory, encoding = "UTF-8", pattern = NULL, recursive = FALSE, ignore.case = FALSE)
Arguments
encoding
a character giving the encoding of the files in the directory.
pattern
an optional regular expression. Only file names which match the regular expression will be returned.
recursive
logical. Should the listing recurse into directories?
ignore.case
logical. Should pattern-matching be case-insensitive?
Value
- An S4 object of class
DirSource
which extends the class
Source
representing a directory.