OpasnetUtils/ComputeDependencies

From Testiwiki
Revision as of 10:34, 20 June 2012 by Teemu R (talk | contribs) (Created page with "{{method|moderator=|stub="yes"}} Category:OpasnetUtils ==Description== Uses Fetch2, EvalOutput, CheckMarginals and CheckInput to load and pre-process upstream variables. Ty...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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