Hi Kumar,
>From a quick look you borrow the 'Worker' object from RcppParallel. But where (as far as I recall) all posted examples of RcppParallel do _not_ put any R objects inside a Worker instance, you put some there. That violates the recommendation in Writing R Extensions. So I think the outcome you observe is as expected. Best, Dirk -- dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel