View source: R/crew_controller_group.R
crew_controller_group | R Documentation |
Create an R6
object to submit tasks and launch workers
through multiple crew
controllers.
crew_controller_group(..., seconds_interval = 1)
... |
|
seconds_interval |
Number of seconds between
polling intervals waiting for certain internal
synchronous operations to complete,
such as checking |
Other controller_group:
crew_class_controller_group
if (identical(Sys.getenv("CREW_EXAMPLES"), "true")) {
persistent <- crew_controller_local(name = "persistent")
transient <- crew_controller_local(
name = "transient",
tasks_max = 1L
)
group <- crew_controller_group(persistent, transient)
group$start()
group$push(name = "task", command = sqrt(4), controller = "transient")
group$wait()
group$pop()
group$terminate()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.