Skip to contents

Returns the contents of task.log for a task.

Usage

mirai_log(task_id, print = TRUE)

Arguments

task_id

Task identifier.

print

Logical. If TRUE, print the log to the console.

Value

A single character string containing the log (invisibly). If no log exists, returns "".

Examples

if (FALSE) { # \dontrun{
id <- mirai_launch({ message("hello") })
cat(mirai_log(id), sep = "\n")
} # }