mkdirs <- function(path) {
# Nothing todo?
if (isTRUE(file.info(path)$isdir)) {
return(TRUE);
}
dir.create(path, recursive=TRUE);
# Sanity check
stopifnot(isTRUE(file.info(path)$isdir));
return(TRUE);
} # mkdirs()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.