[R] clusterCall with replicate function

2007-08-21 Thread Michael Gormley
I am trying to run a monte carlo process using snow with a MPI cluster. I have ~thirty processors to run the algorithm on and I want to run it 5000 times and take the average of the output. A very simple way to do this is to divide 5000 by the number of processors to get a number n and tell

Re: [R] clusterCall with replicate function

2007-08-21 Thread Luke Tierney
replicate uses non-standard evaluation of its expr argument so that doesn't work well with clusterCall or clusterApply. The way you are using it you will get the same answer on all nodes no patter what you do about the generators because the computations are all being done on the master. You can