default_cluster | R Documentation |
Setting up a cluster is relatively expensive, so it's best to use a single cluster throughout a session. This function lazily creates a 2-worker cluster for use in examples and test.
default_cluster(n = 2)
n |
Number of workers to use; defaults to 2 because this is the maximum allowed by CRAN. |
A cached cluster of workers.
default_cluster()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.