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, ...)
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.
Value
Names of sourced 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# NOT RUN {
sourceDir("bootstrap/software/utilities")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab