[R] multicore in R

dikshie dikshie at gmail.com
Thu Feb 25 08:56:42 CET 2010


Hi,
i have a function:
zz<- (constrOptim(c(.5,0), fr, grr, ui=rbind(c(-1,0),c(1,-1)), ci=c(-0.9,0.1)))
i can get the result by using command (for example):  zz$par

now if i can use multicore:
zz<-parallel(constrOptim(c(.5,0), fr, grr, ui=rbind(c(-1,0),c(1,-1)),
ci=c(-0.9,0.1)))
result < collect(zz)

i cant get my the result: result$par because multicore add process id.
for example:
$`2493`$par
[1] 0.8891335 0.7891335

i try to get the result by:  result$`processID(zz)`$par
but it return NULL.

so any idea how to get the result?

with best regards,
-- 
-dikshie-



More information about the R-help mailing list