sourceFiles: Source certain files from a file list Usually we are inside...

View source: R/read.R

sourceFilesR 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

Description

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

Usage

sourceFiles(
  fl = makeArgs(),
  exts = c("R", "r"),
  first = FALSE,
  verbose = FALSE
)

Arguments

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()


dushoff/shellpipes documentation built on Dec. 14, 2024, 4:36 p.m.