future.batchtools | R Documentation |
The future.batchtools package implements the Future API on top of batchtools 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 batchtools futures, load future.batchtools, and
select the type of future you wish to use via
future::plan()
.
library(future.batchtools)
## Use local batchtools futures
plan(batchtools_local)
## A global variable
a <- 1
v %<-% {
b <- 3
c <- 2
a * b * c
}
print(v)
plan(batchtools_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.