##' parReplicate function from: https://stackoverflow.com/questions/19281010/simplest-way-to-do-parallel-replicate
##' @details arguments as in \code{\link{parSapply}} and \code{\link{replicate}}
##' @importFrom parallel parSapply
##' @export parReplicate
parReplicate = function(cl, n, expr, simplify=TRUE, USE.NAMES=TRUE){
parSapply(cl, integer(n), function(i, ex) eval(ex, envir=.GlobalEnv),
substitute(expr), simplify=simplify, USE.NAMES=USE.NAMES)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.