## Copyright (C) 2010-2015 Gray Calhoun; MIT license
RepParallel <- function(n, expr, simplify = "array",...) {
answer <-
mclapply(integer(n), eval.parent(substitute(function(...) expr)),...)
if (!identical(simplify, FALSE) && length(answer))
return(simplify2array(answer, higher = (simplify == "array")))
else return(answer)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.