Difference between revisions of "OpasnetUtils/ComputeDependencies"

From Testiwiki
Jump to: navigation, search
(Created page with "{{method|moderator=|stub="yes"}} Category:OpasnetUtils ==Description== Uses Fetch2, EvalOutput, CheckMarginals and CheckInput to load and pre-process upstream variables. Ty...")
(No difference)

Revision as of 10:34, 20 June 2012

Description

Uses Fetch2, EvalOutput, CheckMarginals and CheckInput to load and pre-process upstream variables. Typically seen on the first line of ovariable formula code.

Code

- Hide code

# ComputeDependencies ############ uses Fetch2, EvalOutput, CheckMarginals and CheckInput to load and pre-process upstream variables
# Typically seen on the first line of ovariable formula code. 

ComputeDependencies <- function(dependencies) {
	Fetch2(dependencies)
	for (i in dependencies$Name) {
		get(i)@output <- EvalOutput(get(i))
		get(i)@marginals <- CheckMarginals(get(i))
		get(i)@output <- CheckInput(get(i))
	}
}

See also