Skip to content
Back to formatted view

Raw Message

Message-ID: <624EC9773CAB044ABA65327271BED9B61885D424@CBMCC-X10-MA01.ad.cibc.com>
Date: 2017-06-13T20:05:20Z
From: Bond, Stephen
Subject: fedback from foreach

Hi useRs,

I am running a foreach loop and hoped to get a small message when it hits a multiple of 1000, but it does not work.

        p <- foreach(i=1:10000, .combine='c') %dopar% {
            if(i%%1000==0) print(i)
            sqrt(i)
        }

What is the proper way to do it.
Thanks everybody.

Stephen B


	[[alternative HTML version deleted]]