Description Usage Arguments Value Examples
Add or get the worker container handles to the managed cloud provider. The handles can be duplicated if multiple workers share the same container
1 2 3 | addManagedWorkerHandles(provider, handles)
getManagedWorkerHandles(provider)
|
provider |
A |
handles |
the worker container handles |
addManagedWorkerHandles: No return value getManagedWorkerHandles: A character vector of the worker handles
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## make a dummy provider
DummyProvider <- setRefClass("DummyProvider", contains = "ManagedCloudProvider")
provider <- DummyProvider()
## No worker handle in the provider
getManagedWorkerHandles(provider)
## Add worker handles
addManagedWorkerHandles(provider, c("a", "b"))
getManagedWorkerHandles(provider)
## It is possible to add the same handle
## if multiple workers share the same container
addManagedWorkerHandles(provider, c("a"))
getManagedWorkerHandles(provider)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.