<div dir="ltr">RInside seems to have done the trick! Awesome.<div><br>I have no strong opinions on how to implement the tests. The only reason why I wanted the embedded R solution is because we use it that way with Python and Julia, and it gives us "raw C++" tests. In the future, we might also have a xtensor-test package, that we can easily use to write tests for all three languages (in C++) at the same time (through metaprogramming).</div><div><br></div><div>But we will definitly also add tests in R (as we have done with Python and Julia, too).</div><div>It would be awesome if you have a chance to add some to your variant.</div><div>I am going to fix up the C++ tests that I've added to the "big" PR and make sure that at least those we have right now work fine to establish a baseline to work from.</div><div><br></div><div>Cheers! </div><div><br></div><div>Wolf</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-12 4:11 GMT-07:00 Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On 12 June 2017 at 11:22, Romain Francois wrote:<br>
| You might be looking for RInside.<br>
<br>
Exactly correct in the narrow sense of 'how to get R going from C++'.<br>
<span class=""><br>
On 12 June 2017 at 01:11, Wolf Vollprecht wrote:<br>
| I am trying to run C++ tests from C++ directly. <br>
| It looks like I need to start the R interpreter for memory management etc.<br>
<br>
</span>The wider, normal sense of the question is, I suspect, how to add unit tests<br>
to an R package such as your xtensor-r.  Give me a day or two and I may get a<br>
chance to add this to my variant of your project.<br>
<br>
You generally do NOT want force an embedded R interpreter __as any Rcpp<br>
project is already called from R__.  Use CRAN as a repository of (as of<br>
today) 1045 example packages.  I don't think a single one embeds R for<br>
testing.  The RUnit (older, used by Rcpp itself) and testthat frameworks are<br>
popular.<br>
<span class="HOEnZb"><font color="#888888"><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>
</font></span></blockquote></div><br></div>