<div dir="ltr"><div>I suggest you check all the examples of RInside. For example,</div><div><br></div><div><a href="https://github.com/eddelbuettel/rinside/blob/master/inst/examples/standard/rinside_sample16.cpp">https://github.com/eddelbuettel/rinside/blob/master/inst/examples/standard/rinside_sample16.cpp</a></div><div><br></div><div>This might meet your requirements.</div><div><br></div><div>Best,</div><div><br></div><div>Qiang Kou<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 6, 2019 at 2:54 PM Brook Milligan <<a href="mailto:brook@nmsu.edu">brook@nmsu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Dec 6, 2019, at 3:50 PM, Qiang Kou <<a href="mailto:qkou@qkou.info" target="_blank">qkou@qkou.info</a>> wrote:<br>
> <br>
> RInside is to call the embedded R.<br>
> <br>
> What do you want to do with R/Rcpp?<br>
<br>
I am trying to write a bridge between R and C++ and need some test cases.  I was hoping I could use Rcpp objects directly in C++, but apparently that is not possible outside of an R environment, which I presume is what RInside provides.<br>
<br>
Is there any way to test the correctness of Rcpp-using functions without running the C++ code within R?  I am thinking not, but would like to find otherwise, as this makes testing much harder.<br>
<br>
Cheers,<br>
Brook<br>
<br>
</blockquote></div>