Learn R Programming

tm (version 0.3-1)

DirSource: Directory Source

Description

Constructs a directory source.

Usage

## S3 method for class 'character':
DirSource(directory, encoding = "UTF-8", recursive = FALSE)

Arguments

directory
a directory.
encoding
a character giving the encoding of the files in the directory.
recursive
a logical value indicating whether the directory should be traversed recursively.

Value

  • An S4 object of class DirSource which extends the class Source representing a directory.