crew_class_async | R Documentation |
R6
async class.R6
class for async configuration.
See crew_async()
.
workers
See crew_async()
.
instance
Name of the current instance.
new()
TLS configuration constructor.
crew_class_async$new(workers = NULL)
workers
Argument passed from crew_async()
.
An R6
object with TLS configuration.
validate()
Validate the object.
crew_class_async$validate()
NULL
(invisibly).
start()
Start the local workers and error handling socket.
crew_class_async$start()
Does not create workers or an error handling socket
if workers
is NULL
or the object is already started.
NULL
(invisibly).
terminate()
Start the local workers and error handling socket.
crew_class_async$terminate()
Waits for existing tasks to complete first.
NULL
(invisibly).
started()
Show whether the object is started.
crew_class_async$started()
Logical of length 1, whether the object is started.
asynchronous()
Show whether the object is asynchronous (has real workers).
crew_class_async$asynchronous()
Logical of length 1, whether the object is asynchronous.
eval()
Run a local asynchronous task using a local compute profile.
crew_class_async$eval( command, substitute = TRUE, data = list(), packages = character(0L), library = NULL )
command
R code to run.
substitute
Logical of length 1, whether to substitute command
.
If FALSE
, then command
must be an expression object
or language object.
data
Named list of data objects required to run command
.
packages
Character vector of packages to load.
library
Character vector of library paths to load the packages from.
Used for launcher plugins with asynchronous launches and
terminations. If processes
is NULL
, the task will run locally.
Otherwise, the task will run on a local process in the local
mirai
compute profile.
If the processes
field is NULL
, a list with an object named
data
containing the result of evaluating expr
synchronously.
Otherwise, the task is evaluated asynchronously, and the result
is a mirai
task object. Either way, the data
element
of the return value will contain the result of the task.
Other async:
crew_async()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.