Create a controller object from a client and launcher.
Source:R/crew_controller.R
crew_controller.Rd
This function is for developers of crew
launcher plugins.
Users should use a specific controller helper such as
crew_controller_local()
.
Arguments
- client
An
R6
client object created bycrew_client()
.- launcher
An
R6
launcher object created by one of thecrew_launcher_*()
functions such ascrew_launcher_local()
.- auto_scale
Deprecated. Use the
scale
argument ofpush()
,pop()
, andwait()
instead.
See also
Other controller:
crew_class_controller
Examples
if (identical(Sys.getenv("CREW_EXAMPLES"), "true")) {
client <- crew_client()
launcher <- crew_launcher_local()
controller <- crew_controller(client = client, launcher = launcher)
controller$start()
controller$push(name = "task", command = sqrt(4))
controller$wait()
controller$pop()
controller$terminate()
}