future.BatchJobs: future.BatchJobs: A Future for BatchJobs

Description Details Examples

Description

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.

Details

To use BatchJobs futures, load future.BatchJobs, and select the type of future you wish to use via plan().

Examples

 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)

future.BatchJobs documentation built on Jan. 5, 2021, 1:07 a.m.