Usually run after identifyVectorArgs which will separate the arguments into vectors of values for a call to Map, and arguments that have only one value (passed to MoreArgs in Map). If all are single length arguments, then it will pass to lapply. If a cl is provided and is non-NULL, then it will pass all arguments to clusterMap or clusterApply.

MapOrDoCall(fn, multiple, single, useCache, cl = NULL)

Arguments

fn

The function that will be run via Map/clusterMap.

multiple

This a list the arguments that Map will cycle over.

single

Passed to MoreArgs in the mapply function.

useCache

Logical indicating whether to use the cache.

cl

A cluster object or NULL.

See also

identifyVectorArgs