tests/resources_OP.R

source("incl/start.R")

message("*** %resources% ...")

plan(batchtools_local)

## This will test `%resources%` but it'll be ignored (with a warning)
## by batchtools_local()
y %<-% { 42 } %resources% list(memory = 16000) ## 16,000 MiB of memory

message("*** %resources% ... DONE")

source("incl/end.R")
HenrikBengtsson/future.batchtools documentation built on Feb. 1, 2024, 7:47 p.m.