[R] Mclapply prints once
Alaios
alaios at yahoo.com
Fri Jul 22 13:31:15 CEST 2011
Dear all
I have the following code that works in paraller (and is pretty fast actually)
The only problem I still have is that every core just prints only once.
dimz<-1000
Shadowlist<-mclapply(1:dimz, function(i) {
print(sprintf('Creating the %d map',i));
createField(x=x, y=y, model=model, grid=TRUE,param=c(mean,variance,nugget,scale))
}
)
In a four core system you will only receive four print messages while this works for 1000 iterations
What might be causing this one time printing?
BR
Alex
More information about the R-help
mailing list