Learn R Programming

OpasnetUtils (version 1.3)

ComputeDependencies: Evaluate ovariable dependencies

Description

Fetches, evaluates and Checks ovariable dependencies given in data.frame format

Usage

ComputeDependencies(dependencies, forceEval = FALSE, indent = 0, 
    verbose = FALSE, ...)

Arguments

dependencies

data.frame that defines Fetch targets, usually taken from an ovariable's dependencies slot

forceEval

if TRUE, forcibly re-evaluates existing instances of listed dependencies

indent

verbose print assist for the Check family, used internally

verbose

TRUE to enable status message printing assists (line breaks) and status messages for other function calls

arguments to pass on to the various recursive checks and evaluations

Value

No return value

Details

ComputeDependencies uses Fetch, EvalOutput, CheckDecisions, CheckCollapse and CheckInput to load and pre-process upstream variables. It is automatically called by EvalOutput, but can be seen on the first lines of old ovariable formula code, to avoid applying decisions, inputs and optimizations twice in old code the function does nothing by default. This is no problem since users should not be calling this function at all. ComputeDependencies also does most of the exception handling in the recursive ovariable model.

See also: http://en.opasnet.org/