R语言添加或删除顶级任务回调addTaskCallback()函数-中英文对照帮助文档
By MicroRbt Martinez PhD
R语言函数名:addTaskCallback()
R语言函数功能:添加或删除顶级任务回调
来自资源库:基础库(R语言自带)
addTaskCallback()函数所属R语言包:所在R包具体名称、包功能的中英文双语描述见正文后面'--所在R语言包信息--'部分。
描述-----Description-----
addTaskCallback registers an R function that is to be called each time a top-level task is completed.
addTaskCallback注册了一个R函数,该函数在每次顶级任务完成时都会被调用。
removeTaskCallback un-registers a function that was registered earlier via addTaskCallback.
removeTaskCallback取消注册先前通过addTaskCallback注册的功能。
These provide low-level access to the internal/native mechanism for managing task-completion actions. One can use taskCallbackManager at the S-language level to manage S functions that are called at the completion of each task. This is easier and more direct.
这些提供对内部/本地机制的低级访问,以管理任务完成操作。可以在S语言级别使用taskCallbackManager来管理在每个任务完成时调用的S函数。这更容易,更直接。
使用方法-----Usage-----
addTaskCallback(f, data = NULL, name = character())
removeTaskCallback(id)
参数-----Arguments-----
参数f介绍: the function that is to be invoked each time a top-level task is successfully completed. This is called with 5 or 4 arguments depending on whether data is specified or not, respectively. The return value should be a logical value indicating whether to keep the callback in the list of active callbacks or discard it.
每次成功完成顶层任务时要调用的功能。根据是否指定了data分别使用5个或4个参数调用此函数。返回值应该是一个逻辑值,指示是将回调保留在活动回调的列表中还是将其丢弃。
参数data介绍: if specified, this is the 5-th argument in the call to the callback function f.
如果已指定,则这是对回调函数f的调用中的第5个参数。
-----未完,待续-----,↓↓↓展开剩余72%↓↓↓
|