The future.BatchJobs package implements the Future API on top of BatchJobs such that futures can be resolved on for instance high-performance compute (HPC) clusters via job schedulers. The Future API is defined by the future package.
To use BatchJobs futures, load future.BatchJobs, and
select the type of future you wish to use via
plan()
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Use local BatchJobs futures
plan(batchjobs_local)
## A global variable
a <- 1
v %<-% {
b <- 3
c <- 2
a * b * c
}
print(v)
plan(batchjobs_local)
demo("mandelbrot", package="future", ask=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.