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")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.