FutureFunctionCall: Future Function Call

Description Usage Arguments Value

View source: R/utils_modules.R

Description

Creates a future for do.call of func with args. Wraps do.call so that, if an error occurs, the stack trace and error message get logged appriopriately.

Usage

1
FutureFunctionCall(func, args, funcName = NULL, assignedProcesses = 1)

Arguments

func

a R function object

args

arguments to be used when calling func

funcName

the name of the function being passed to this call, in case an error occurs it will log out the stack trace separately

assignedProcesses

number of processes to assign to the execution of this module. If the underlying execution code leverages the package future, this will be enforced by setting a future plan on behalf of the module execution code.

Value

created future.


UptakeOpenSource/updraft documentation built on Oct. 17, 2019, 3:31 p.m.