Description Usage Arguments Value Note Author(s)
View source: R/systools__sourceDir.R
Sourcing a bunch of files located in different folders/subfolders. Also provide byte-code compiling before sourcing.
1 2 3 4 5 6 7 8 |
... |
"characters" The inputs can be path to the R code or mixture of paths and files. |
byte.compile |
"integer". If byte.compile = 0, the program will only load the R source code. If byte.compile = 1, the program will first load the byte-compiled file if the byte-compiled file exists and is newer than the R source code, otherwise the program will first byte-compile it and then load the byte-compiled file. If byte.compile = 2, the program will byte-compile the R source code regardless of the existence of byte-compiled files. |
recursive |
"logical". If TRUE, files will be sourced recursively for all sub folders. |
envir |
"environment". What is the destiny of the files to be sourced. The default environment is the global environment. |
pattern |
"string". What kind of file pattern is sourced. |
ignore.error |
"logical". If TRUE, try to continue even errors occur. |
"data.frame".
A summary is returned invisibly if input is not empty, otherwise quit with an error.
Initial: Wed Apr 15 20:00:43 CET 2009; Current: Tue Jan 08 23:15:57 CET 2013.
license: GPL(>=2)
TODO: allow parallel souring.
Feng Li, Department of Statistics, Stockholm University, Sweden.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.