title: How can I print when using %dopar%
body: <p>I have a <code>foreach</code> loop that uses <code>%dopar%</code> with <code>doSNOW</code> as the back-end. How can I have the loop print something out each iteration? </p>
  
  <p>My code below is what I'm currently using, but its not printing anything.</p>
  
  <pre><code>foreach(ntree=rep(25,2),.combine=combine,.packages='randomForest',
      .inorder=FALSE) %dopar% {
          print("RANDOM FOREST")
          randomForest(classForm,data=data,na.action=na.action,do.trace=do.trace,ntree=ntree,mtry=mtry)
      }   
  </code></pre>