rrq_task_results | R Documentation |
Get the results of a group of tasks, returning them as a list. See rrq_task_result for getting the result of a single task.
rrq_task_results(
task_ids,
error = FALSE,
named = FALSE,
follow = NULL,
controller = NULL
)
task_ids |
A vector of task ids for which the task result is wanted. |
error |
Logical, indicating if we should throw an error if
the task was not successful. See |
named |
Logical, indicating if the return value should be named with the task ids; as these are quite long this can make the value a little awkward to work with. |
follow |
Optional logical, indicating if we should follow any
redirects set up by doing rrq_task_retry. If not given, falls
back on the value passed into the controller, the global option
|
controller |
The controller to use. If not given (or |
A list, one entry per result. This function errors if
any task is not available. If named = TRUE
, then this list is
named with the task_ids
.
obj <- rrq_controller("rrq:example")
ts <- rrq_task_create_bulk_call(sqrt, 1:10, controller = obj)
rrq_task_wait(ts, controller = obj)
rrq_task_results(ts, controller = obj)
# For a single task, rrq_task_result and rrq_task_results differ
# in the return type; rrq_task_results always returns a list:
t <- ts[[1]]
rrq_task_result(t, controller = obj)
rrq_task_results(t, controller = obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.