R/sourcedir.r

Defines functions sourcedir

Documented in sourcedir

sourcedir <- function(path, trace = TRUE, ...) {
    
    for(nm in list.files(path, pattern = "\\.[RrSsQq]$", all.files = TRUE)) {
        
        if(trace) cat(nm,":")                     
        source(file.path(path, nm), ...)
        if(trace) cat("\n")
        
        }
    
    }
mlesnoff/rchemo documentation built on April 15, 2023, 1:25 p.m.