View source: R/parallel_config.R
| get_n_workers | R Documentation |
Returns the number of parallel workers configured in the current future plan.
get_n_workers()
Integer specifying the number of workers, or 1 if sequential processing is enabled.
set_parallel_plan()
## Not run:
set_parallel_plan("multisession", workers = 4)
get_n_workers() # Returns 4
set_parallel_plan("sequential")
get_n_workers() # Returns 1
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.