crew_async | R Documentation |
Create an R6
object to manage local asynchronous quick
tasks with error detection.
crew_async(workers = NULL)
workers |
Number of local |
crew_async()
objects are created inside launchers to allow
launcher plugins to run local tasks asynchronously, such as
calls to cloud APIs to launch serious remote workers.
An R6
async client object.
Other async:
crew_class_async
if (identical(Sys.getenv("CREW_EXAMPLES"), "true")) {
x <- crew_async()
x$start()
out <- x$eval(1 + 1)
mirai::call_mirai_(out)
out$data # 2
x$terminate()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.