twDynamicClusterApplyDep: twDynamicClusterApplyDep

Description Usage Arguments Details Value Author(s) See Also

Description

Modification of dynamicClusterApply (snow-internal) to provide result of previous step.

Usage

1
2
twDynamicClusterApplyDep(cl, fun, n, argfun, dependsStep, initVal = vector("list", 
    dependsStep), freeMasterNode = FALSE)

Arguments

cl

a function returning a list of arguments passed to fun

fun
n
argfun
dependsStep

dependencies in 1..n

initVal

results presented to argfun for the first 1..dependsStep results

freeMasterNode

if set to TRUE, no job is submitted to node 1, so that this node can dispatch jobs without waiting

Details

argfun=function(i,prevRes) list( <args(i,prevRes)> ) provides arguments to fun where

i

index for which to generate arguments

prevRes

result of FUN for case i-dependsStep.

can be assume that prevResList[[i-useNCpus]] has been evaluted already

dependsStep

Value

same (snow-internal) dynamicClusterApply

Author(s)

Thomas Wutzler

See Also

twSnowfall


twSnowfall documentation built on May 2, 2019, 4:47 p.m.