sourceDir <- function(path = ".") {
for (file in list.files(path, pattern = "\\.[Rr]$")) {
source(file.path(path,file))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.