Re: [R] Error when using foreach package for parralelization

2012-01-10 Thread Mikko Korpela
On 01/03/2012 03:19 PM, Julien Textoris wrote: > I'm trying to parallelize the following R code : > > pk2test = > c(1:16,(12*16+1):(12*16+16),(16*16+1):(16*16+16),(20*16+1):(20*16+16)) > score.mat = matrix(nc=16*4,nr=16*4) > for(i in 1:(16*4)) { > > for(j in i:(16*4)) { >

[R] Error when using foreach package for parralelization

2012-01-03 Thread Julien Textoris
Hi, i tried to find the answer but didn't so my apologies if the question is obvious ! I'm trying to parallelize the following R code : pk2test = c(1:16,(12*16+1):(12*16+16),(16*16+1):(16*16+16),(20*16+1):(20*16+16)) score.mat = matrix(nc=16*4,nr=16*4) for(i in 1:(16*4)) {