Sources files recursively to either local or global environment
Sources files recursively to either local or global environment.
## S3 method for class 'default': sourceDirectory(path, pattern=".*[.](r|R|s|S|q)([.](lnk|LNK))*$", recursive=TRUE, envir=parent.frame(), onError=c("error", "warning", "skip"), modifiedOnly=TRUE, ..., verbose=FALSE)
- A path to a directory to be sourced.
- A regular expression file name pattern to identify source code files.
TRUE, subdirectories are recursively sourced first, otherwise not.
environmentin which the code should be evaluated.
- If an error occures, the error may stop the job, give a warning, or silently be skipped.
TRUE, only files that are modified since the last time they were sourced are sourced, otherwise regardless.
- Additional arguments passed to
- Returns a
vectorof 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
Looks like there are no examples yet.