Nothing
source("incl/start.R")
strategies <- future:::supportedStrategies()
strategies <- setdiff(strategies, "multiprocess")
message("*** doFuture - reproducibility ...")
res0 <- NULL
for (strategy in strategies) {
message(sprintf("- plan('%s') ...", strategy))
plan(strategy)
mu <- 1.0
sigma <- 2.0
res <- foreach(i = 1:3, .options.future = list(packages = "stats")) %dofuture% {
dnorm(i, mean = mu, sd = sigma)
}
print(res)
if (is.null(res0)) {
res0 <- res
} else {
stopifnot(all.equal(res, res0))
}
# Shutdown current plan
plan(sequential)
message(sprintf("- plan('%s') ... DONE", strategy))
} ## for (strategy ...)
message("*** doFuture - reproducibility ... DONE")
source("incl/end.R")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.