sourceFiles | R Documentation |
Source certain files from a file list Usually we are inside the first .R file so we want to source the others (first=FALSE by default) If called from a wrapper, we probably want to source the main source file (first in list) _last_. Other styles of calling need to be done in a clunky, manual fashion; I've never needed to do this first is for when the calling script is some sort of wrapper for the pipeline; should not be needed for pure pipeR projects
sourceFiles(
fl = makeArgs(),
exts = c("R", "r"),
first = FALSE,
verbose = FALSE
)
fl |
file list to select from (makeArgs by default) |
exts |
extensions to select |
first |
(Boolean); should we source the first matched file (usually the master script)? |
verbose |
(Boolean); passed to source() |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.