crew_controller_group {crew} | R Documentation |
Create a controller group.
Description
Create an R6
object to submit tasks and launch workers
through multiple crew
controllers.
Usage
crew_controller_group(...)
Arguments
... |
|
See Also
Other controller_group:
crew_class_controller_group
Examples
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()
}
[Package crew version 0.9.5 Index]