View source: R/parallel_config.R
| set_parallel_plan | R Documentation |
Configure the parallel processing strategy for riemtan operations. Uses the future package to manage parallel backends.
set_parallel_plan(strategy = "sequential", workers = NULL)
strategy |
Character string specifying the parallel strategy:
|
workers |
Integer specifying the number of parallel workers.
If |
The multisession strategy is recommended for most users as it works on all platforms.
The multicore strategy is faster on Unix-like systems but is not available on Windows.
To disable parallel processing, use set_parallel_plan("sequential").
Invisibly returns the future plan object.
future::plan(), is_parallel_enabled(), should_parallelize()
## Not run:
# Enable parallel processing with automatic worker detection
set_parallel_plan("multisession")
# Use 4 parallel workers
set_parallel_plan("multisession", workers = 4)
# Disable parallel processing
set_parallel_plan("sequential")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.