Rev 58549 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/base/man/taskCallbackNames.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2007 R Core Team% Distributed under GPL 2 or later\name{taskCallbackNames}\alias{getTaskCallbackNames}\title{Query the Names of the Current Internal Top-Level Task Callbacks}\description{This provides a way to get the names (or identifiers)for the currently registered task callbacksthat are invoked at the conclusion of each top-level task.These identifiers can be used to remove a callback.}\usage{getTaskCallbackNames()}\value{A character vector giving the name for each of theregistered callbacks which are invoked whena top-level task is completed successfully.Each name is the one used when registeringthe callbacks and returned as the in thecall to \code{\link{addTaskCallback}}.}\note{One can use \code{\link{taskCallbackManager}}to manage user-level task callbacks,i.e., S-language functions, entirely withinthe S language and access the namesmore directly.}\seealso{\code{\link{addTaskCallback}},\code{\link{removeTaskCallback}},\code{\link{taskCallbackManager}}\\\url{http://developer.r-project.org/TaskHandlers.pdf}}\examples{n <- addTaskCallback(function(expr, value, ok, visible) {cat("In handler\n")return(TRUE)}, name = "simpleHandler")getTaskCallbackNames()# now remove it by nameremoveTaskCallback("simpleHandler")h <- taskCallbackManager()h$add(function(expr, value, ok, visible) {cat("In handler\n")return(TRUE)}, name = "simpleHandler")getTaskCallbackNames()removeTaskCallback("R-taskCallbackManager")}\keyword{environment}