Description Usage Value Note See Also Examples
This provides a way to get the names (or identifiers) for the currently registered task callbacks that are invoked at the conclusion of each top-level task. These identifiers can be used to remove a callback.
1 |
A character vector giving the name for each of the
registered callbacks which are invoked when
a top-level task is completed successfully.
Each name is the one used when registering
the callbacks and returned as the in the
call to addTaskCallback
.
One can use taskCallbackManager
to manage user-level task callbacks,
i.e., S-language functions, entirely within
the S language and access the names
more directly.
addTaskCallback
,
removeTaskCallback
,
taskCallbackManager
\
http://developer.r-project.org/TaskHandlers.pdf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | n <- addTaskCallback(function(expr, value, ok, visible) {
cat("In handler\n")
return(TRUE)
}, name = "simpleHandler")
getTaskCallbackNames()
# now remove it by name
removeTaskCallback("simpleHandler")
h <- taskCallbackManager()
h$add(function(expr, value, ok, visible) {
cat("In handler\n")
return(TRUE)
}, name = "simpleHandler")
getTaskCallbackNames()
removeTaskCallback("R-taskCallbackManager")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.