Returns the task output from output.rds if it exists. When
given a mirai_tasks tibble returned from mirai_ls(), adds an output
list-column.
Usage
mirai_output(x, ...)
# S3 method for class 'character'
mirai_output(x, ...)
# S3 method for class 'mirai_tasks'
mirai_output(x, ...)
# Default S3 method
mirai_output(x, ...)Arguments
- x
Either a task identifier or a
mirai_taskstibble returned frommirai_ls().- ...
Reserved for S3 method dispatch.
Value
If x is a task id, the object stored in output.rds, or NULL if
not available. If x is a mirai_tasks tibble, the same tibble with an
added output list-column.
Examples
if (FALSE) { # \dontrun{
id <- mirai_launch({ mean(rnorm(1e6)) })
mirai_output(id)
mirai_ls() |>
mirai_output()
} # }