future.batchtools (version 0.7.1)

future.batchtools: 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.

Arguments

Details

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

Examples

Run this code
# NOT RUN {
plan(batchtools_local)
demo("mandelbrot", package = "future", ask = FALSE)
# }
# NOT RUN {
## Use local batchtools futures
plan(batchtools_local)

## A global variable
a <- 1

v %<-% {
  b <- 3
  c <- 2
  a * b * c
}

print(v)
# }

Run the code above in your browser using DataCamp Workspace