Learn R Programming

mcparallelDo (version 1.1.0)

jobCompleteSelfDestructingHandler: jobCompleteDestructingHandler

Description

Creates a callback handler function that can be added via addTaskCallback(). These functions run at the end of each completed R statement. This particular handler watches for the completion of the target job, which is created via mcparallel()

Usage

jobCompleteSelfDestructingHandler(targetJob, targetValue, verbose, targetEnvironment)

Arguments

targetJob
(character) Name of the mcparallel job variable that is waiting for a result
targetValue
A character element indicating the variable that the result of that job should be assigned to targetEnvironment
verbose
A boolean element; if TRUE the completion of the fork expr will be accompanied by a message
targetEnvironment
The environment in which you want targetValue to be created

Value

callback handler function