Learn R Programming

icesTAF (version 3.6.0)

sourceDir: Source Directory

Description

Read all *.R files from a directory containing R functions.

Usage

sourceDir(dir, pattern = "\\.[r|R]$", all.files = FALSE,
  recursive = FALSE, quiet = TRUE, ...)

Value

Names of sourced files.

Arguments

dir

a directory containing R source files.

pattern

passed to dir when selecting files.

all.files

passed to dir when selecting files.

recursive

passed to dir when selecting files.

quiet

whether to suppress messages.

...

passed to source when sourcing files.

Details

The dir argument can also be a vector of filenames, instead of a directory name. This can be useful to specify certain files while avoiding others.

See Also

source is the base function to read R code from a file.

icesTAF-package gives an overview of the package.

Examples

Run this code
if (FALSE) {
sourceDir("bootstrap/software/utilities")
}

Run the code above in your browser using DataLab