Re: [Rcpp-devel] RcppParallel wrong after correct

2017-06-02 Thread Dirk Eddelbuettel
On 2 June 2017 at 15:56, Romain Francois wrote: | Can you prepare a reprex ? Seconded. Minimally reproducible example or your post does not exist. https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example/ Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e..

Re: [Rcpp-devel] RcppParallel wrong after correct

2017-06-02 Thread Romain Francois
Can you prepare a reprex ? > Le 2 juin 2017 à 15:40, "f.k...@mailbox.org" a écrit : > > Hi all, > > I wrote a function foo using RcppParallel and I am observing a bug, which I > can’t figure out. > I first wrote the function in R, then in Rcpp, then RcppParallel. > > foo is doing exactly what

[Rcpp-devel] RcppParallel wrong after correct

2017-06-02 Thread f.k...@mailbox.org
Hi all, I wrote a function foo using RcppParallel and I am observing a bug, which I can’t figure out. I first wrote the function in R, then in Rcpp, then RcppParallel. foo is doing exactly what it is supposed to do in R and Rcpp. However, I am observing some wired things in RcppParallel. foo_pa