Description Usage Arguments Note Author(s) Examples
View source: R/load.scripts.and.data.R
A convenience function to read all the data files and scripts from specified directories. In general, should only need to specify the directories. Specify directories without trailing slashes.
1 2 | load.scripts.and.data(path, pattern = list(scripts = "*.R$", data =
"*.rda$|*.Rdata$"), ignore.case = TRUE)
|
path |
A character vector of file paths. |
pattern |
A named list of patterns to match for loading scripts and data files. See "Notes". |
ignore.case |
Logical. Should letter case be considered when searching
for data files and script files? Defaults to |
The pre-defined pattern is list(scripts = "*.R$", data =
"*.rda$|*.Rdata$")
. This should match most conventionally used file
extensions for R's native script and data files. Alternative patterns should
be specified in the same form.
Ananda Mahto
1 2 3 4 5 | ## Not run:
load.scripts.and.data(c("~/Dropbox/Public",
"~/Dropbox/Public/R Functions"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.