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")
        
        }
    
    }

Try the rchemo package in your browser

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

rchemo documentation built on Sept. 11, 2024, 8:05 p.m.