plapply <- function(X, FUN, ...) {
if (exists("parLapply") & exists(".GlobalEnv$cl")) {
o <- parLapply(.GlobalEnv$cl, X,
FUN, ...)
} else {
o <- lapply(X, FUN, ...)
}
o
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.