Sources files recursively to either local or global environment
Sources files recursively to either local or global environment.
## Default S3 method: sourceDirectory(path, pattern=".*[.](r|R|s|S|q)([.](lnk|LNK))*$", recursive=TRUE, envir=parent.frame(), onError=c("error", "warning", "skip"), modifiedOnly=TRUE, ..., verbose=FALSE)
path |
A path to a directory to be sourced. |
pattern |
A regular expression file name pattern to identify source code files. |
recursive |
If |
envir |
An |
onError |
If an error occurs, the error may stop the job, give a warning, or silently be skipped. |
modifiedOnly |
If |
... |
Additional arguments passed to |
verbose |
Returns a vector
of the full pathnames of the files sourced.
Subdirectories and files in each (sub-)directory are sourced in lexicographic order.
This method does not provide hooks, but the internally used
sourceTo
() does.
Henrik Bengtsson
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.