<div dir="ltr"><div><div>Thanks for the suggestion! Unfortunately, I don't follow you. This is likely because this is my first attempt at parallel code outside of one-off mclapply(). My hope is to use this in a package on CRAN, so I'd like something more portable than mclapply().<br><br></div>My understanding is that we need to work with 'thread safe' data structures. For example, in the worker in (<a href="http://gallery.rcpp.org/articles/parallel-matrix-transform/">http://gallery.rcpp.org/articles/parallel-matrix-transform/</a>) RMatrix<double> is used for input and output matrices. And part of the point of RMatrix and RVector are to provide these 'thread safe' data structures so the rest of us do not need to learn the details of their complexities. When you say I could try using std::vector<std::string> do you mean as a substitute for RMatrix in the worker? Or perhaps std::vector<std::vector<std::string>> as a substitute for RMatrix?<br><br></div><div>Thank you!<br></div><div>Brian<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 27, 2018 at 3:51 PM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On 27 February 2018 at 15:46, brian knaus wrote:<br>
| Thanks for your suggestion Dirk! But it may be beyond my abilities. I may<br>
| have to learn more than I anticipated on this one.<br>
<br>
</span>Yes, it looks like a handful.<br>
<br>
OTOH you may be able to get by with standard C++ container, possibly at the<br>
cost of one initial copy.  Maybe std::vector<std::string> can do the trick<br>
for you and we do already have converters to those.<br>
<div class="HOEnZb"><div class="h5"><br>
Dirk<br>
<br>
--<br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
</div></div></blockquote></div><br></div>