# 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