View source: R/crew_launcher_local.R
| crew_launcher_local | R Documentation | 
Create an R6 object to launch and maintain
local process workers.
crew_launcher_local(
  name = NULL,
  workers = 1L,
  seconds_interval = 1,
  seconds_timeout = 60,
  seconds_launch = 30,
  seconds_idle = Inf,
  seconds_wall = Inf,
  seconds_exit = NULL,
  tasks_max = Inf,
  tasks_timers = 0L,
  reset_globals = NULL,
  reset_packages = NULL,
  reset_options = NULL,
  garbage_collection = NULL,
  crashes_error = NULL,
  launch_max = NULL,
  tls = crew::crew_tls(),
  r_arguments = c("--no-save", "--no-restore"),
  options_metrics = crew::crew_options_metrics(),
  options_local = crew::crew_options_local(),
  local_log_directory = NULL,
  local_log_join = NULL
)
| name | Character string, name of the launcher. If the name is
 | 
| workers | Maximum number of workers to run concurrently
when auto-scaling, excluding task retries and manual calls to  | 
| seconds_interval | Number of seconds between
polling intervals waiting for certain internal
synchronous operations to complete. In certain cases, exponential
backoff is used with this argument passed to  | 
| seconds_timeout | Number of seconds until timing
out while waiting for certain synchronous operations to complete,
such as checking  | 
| seconds_launch | Seconds of startup time to allow.
A worker is unconditionally assumed to be alive
from the moment of its launch until  | 
| seconds_idle | Maximum number of seconds that a worker can idle
since the completion of the last task. If exceeded, the worker exits.
But the timer does not launch until  | 
| seconds_wall | Soft wall time in seconds.
The timer does not launch until  | 
| seconds_exit | Deprecated on 2023-09-21 in version 0.5.0.9002. No longer necessary. | 
| tasks_max | Maximum number of tasks that a worker will do before
exiting. See the  | 
| tasks_timers | Number of tasks to do before activating
the timers for  | 
| reset_globals | Deprecated on 2025-05-30 ( | 
| reset_packages | Deprecated on 2025-05-30 ( | 
| reset_options | Deprecated on 2025-05-30 ( | 
| garbage_collection | Deprecated on 2025-05-30
( | 
| crashes_error | Deprecated on 2025-01-13 ( | 
| launch_max | Deprecated on 2024-11-04 ( | 
| tls | A TLS configuration object from  | 
| r_arguments | Optional character vector of command line arguments
to pass to  | 
| options_metrics | Either  | 
| options_local | An object generated by  | 
| local_log_directory | Deprecated on 2024-10-08. Use
 | 
| local_log_join | Deprecated on 2024-10-08. Use
 | 
Other plugin_local: 
crew_class_launcher_local,
crew_controller_local()
if (identical(Sys.getenv("CREW_EXAMPLES"), "true")) {
client <- crew_client()
client$start()
launcher <- crew_launcher_local(name = client$name)
launcher$start(url = client$url, profile = client$profile)
launcher$launch()
task <- mirai::mirai("result", .compute = client$profile)
mirai::call_mirai(task)
task$data
client$terminate()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.