Difference between revisions of "OpasnetUtils/Fetch"

From Testiwiki
Jump to: navigation, search
(alternative added)
m (Alternative)
Line 37: Line 37:
 
for (i in 1:nrow(dependencies)) {
 
for (i in 1:nrow(dependencies)) {
 
if(!exists(dependencies$Name[i])) {
 
if(!exists(dependencies$Name[i])) {
objects.get(dependencies$Key[i]) # Key is the R-tools session identifier (seen at the end of the url)
+
objects.get(dependencies$Key[i]) # Key is the R-tools session identifier (shown at the end of the url)
 
if (evaluate) get(dependencies$Name[i])@output <- EvalOutput(get(dependencies$Name[i]))  
 
if (evaluate) get(dependencies$Name[i])@output <- EvalOutput(get(dependencies$Name[i]))  
 
# Eval not necessarily needed at this point
 
# Eval not necessarily needed at this point

Revision as of 10:17, 15 June 2012


Description

fetch downloads a variable.

Code

+ Show code

Alternative

--# : Fetch should take 'dependencies' as argument and download variables to global memory. Fetch2 does that and I move to suggest that we replace fetch with Fetch2 --Teemu R 11:28, 15 June 2012 (EEST)

+ Show code

See also