R/sourceDir.R

Defines functions sourceDir

sourceDir <-
function(absPath, trace = TRUE, ...)
{
    for (funcName in list.files(absPath, pattern = "\\.[R]$"))
      {
       source(file.path(absPath, funcName), ...)
       if(trace){cat("    Loaded:", funcName, "\n")}
      }
}

Try the P2C2M package in your browser

Any scripts or data that you put into this service are public.

P2C2M documentation built on May 2, 2019, 8:24 a.m.