Learn R Programming

drake (version 5.2.1)

backend: Deprecated function backend

Description

Use future::plan() instead. Avoid drake::plan().

Usage

backend(...)

Arguments

...

Arguments to future::plan().

Value

The same return value as future::plan().

Details

Deprecated on 2017-11-12.

Examples

Run this code
# NOT RUN {
test_with_dir("Quarantine side effects.", {
load_mtcars_example() # Get the code with drake_example("mtcars").
# Choose future's multicore parallel backend.
library(future)
future::plan(multicore) # Instead of backend(). Avoid drake::plan().
# Run the project, build the targets.
# Future knows that you chose the multicore backend.
make(my_plan, parallelism = "future_lapply")
})
# }

Run the code above in your browser using DataLab