Displaying 1 result from an estimated 1 matches for "out2_tmp".
2012 Oct 03
0
optimize and mcparallel problem
...2)
diff
}
This works well so far:
vals <- NULL
out1 <- optimize(foo, interval = seq(0, 4, 0.2))
vals
However, the second problem arises if I want to use the "parallel"
function in the "multicore" package:
library(multicore)
vals <- NULL
out2_tmp <- mcparallel(optimize(foo, interval = seq(0, 4, 0.2)))
out2 <- collect(out2_tmp, wait = TRUE)
vals
Predictably, the child process does not return the "vals" object when
I use the "collect" function.
To summarize, my first question is whether or not there is a bett...