<div dir="ltr"><div>The sample16 showed several things you might need in your case:</div><div><br></div><div>1. construct R objects and functions using Rcpp</div><div><br></div><div>2. call them through the embedded R and pass results back to C++</div><div><br></div><div>I think it is a good example, if you want to write testing cases for R/C++ bridge code.<br></div><div><br></div><div>Best,</div><div><br></div><div>KK<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 6, 2019 at 3:08 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:58 PM, Qiang Kou <<a href="mailto:qkou@qkou.info" target="_blank">qkou@qkou.info</a>> wrote:<br>
> <br>
> I suggest you check all the examples of RInside. For example,<br>
> <br>
> <a href="https://github.com/eddelbuettel/rinside/blob/master/inst/examples/standard/rinside_sample16.cpp" rel="noreferrer" target="_blank">https://github.com/eddelbuettel/rinside/blob/master/inst/examples/standard/rinside_sample16.cpp</a><br>
> <br>
> This might meet your requirements.<br>
<br>
Thanks.<br>
<br>
>From the examples I glean the following:<br>
<br>
- RInside::RInside(int,char*[])<br>
- RInside::operator[](...)<br>
- Several RInside::parseEval*(...) member functions<br>
<br>
Is this the entire public API?<br>
<br>
Is there any documentation on these more specific than guessing from the examples?<br>
<br>
Thanks for your help.<br>
<br>
Cheers,<br>
Brook<br>
<br>
</blockquote></div>