DirSource {tm}R Documentation

Directory Source

Description

Constructs a directory source.

Usage

## S4 method for signature 'character':
DirSource(directory, encoding = "UTF-8", pattern = NULL, recursive = FALSE, ignore.case = FALSE)

Arguments

directory a directory.
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.

Author(s)

Ingo Feinerer


[Package tm version 0.3-4.1 Index]