I have a foreach
loop that uses %dopar%
with doSNOW
as the back-end. How can I have the loop print something out each iteration?
My code below is what I'm currently using, but its not printing anything.
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)
}