future.batchtools {future.batchtools} | R Documentation |
future.batchtools: A Future for batchtools
Description
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.
Details
To use batchtools futures, load future.batchtools, and
select the type of future you wish to use via
future::plan()
.
Examples
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)
[Package future.batchtools version 0.12.1 Index]