Description Usage Arguments Value Examples
set task function hook according to
1 2 3 4 5 6 7 8 | setTaskHook(
status = c("queued", "draft", "running", "completed", "aborted", "failed"),
fun
)
getTaskHook(
status = c("queued", "draft", "running", "completed", "aborted", "failed")
)
|
status |
one of "queued", "draft", "running", "completed", "aborted", or "failed". |
fun |
function it must return a TRUE or FALSE in the end of function body, when it's TRUE this function will also terminate monitor process, if FALSE, function called, but not going to terminate task monitoring process. |
object from setHook and getHook.
1 2 3 4 5 | getTaskHook("completed")
setTaskHook("completed", function() {
message("completed")
return(TRUE)
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.