source.dir {TAF} | R Documentation |
Source Directory
Description
Read all *.R
files from a directory containing R functions.
Usage
source.dir(dir, pattern = "\\.[r|R]$", all.files = FALSE,
recursive = FALSE, quiet = TRUE, ...)
Arguments
dir |
a directory containing R source files. |
pattern |
passed to |
all.files |
passed to |
recursive |
passed to |
quiet |
whether to suppress messages. |
... |
passed to |
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.
Value
Names of sourced files.
Note
This function is convenient in TAF analyses when many R utility functions are stored in a directory, see example below.
See Also
source
is the base function to read R code from a file.
TAF-package
gives an overview of the package.
Examples
## Not run:
source.dir("boot/software/utilities")
## End(Not run)
[Package TAF version 4.2.0 Index]