Re: [R] fedback from foreach

2017-06-13 Thread Ismail SEZEN
> > On 13 Jun 2017, at 23:05, Bond, Stephen wrote: > > 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:1, .combine='c') %dopar% { >if(i%%1000==0) print(i) >

[R] fedback from foreach

2017-06-13 Thread Bond, Stephen
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:1, .combine='c') %dopar% { if(i%%1000==0) print(i) sqrt(i) } What is the proper way to do it. Thanks everybo