I suggest you check all the examples of RInside. For example,

https://github.com/eddelbuettel/rinside/blob/master/inst/examples/standard/rinside_sample16.cpp

This might meet your requirements.

Best,

Qiang Kou

On Fri, Dec 6, 2019 at 2:54 PM Brook Milligan <br...@nmsu.edu> wrote:

>
>
> > On Dec 6, 2019, at 3:50 PM, Qiang Kou <q...@qkou.info> wrote:
> >
> > RInside is to call the embedded R.
> >
> > What do you want to do with R/Rcpp?
>
> 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.
>
> 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.
>
> Cheers,
> Brook
>
>
_______________________________________________
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

Reply via email to