Sources files recursively to either local or global environment

Sources files recursively to either local or global environment.

## S3 method for class 'default}(path, pattern=".*[.]R([.](lnk|LNK))*$", recursive=TRUE, envir=parent.frame(), onError=c("error", "warning", "skip"), 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 TRUE, subdirectories are recursively sourced too,
       otherwise not.}
 envir{An environment in which the code should be evaluated.}
 onError{If an error occures, the error may stop the job,
       give a warning, or silently be skipped.}
 verbose{A logical or a Verbose object.}
 ...{Not used.}

Returns a vector of the full pathnames of the files sourced.

{ This method does not provide hooks, but the internally used sourceTo() does. } sourceTo() and compare to source(). [object Object] IO programming
  • sourceDirectory.default
  • sourceDirectory
Documentation reproduced from package R.utils, version 0.5.5, License: LGPL version 2.1 or newer (the releases)

Community examples

Looks like there are no examples yet.