DirSource: Directory Source
Description
Constructs a directory source.Usage
DirSource(directory = ".", encoding = "UTF-8", pattern = NULL, recursive = FALSE, ignore.case = FALSE)
Arguments
directory
A character vector of full path names; the default corresponds to the working directory getwd()
.
encoding
A character giving the encoding of the files in 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 object of class
DirSource
which extends the class
Source
representing a directory. Each file in this directory is
considered to be a document.