I would like my C++ code to call R functions, passing data between the two. The R functions are not trivial, currently defined in separate .R files.
As far as I can tell, the examples provided with Rinside have all the R code "embedded" in the C++ code.
Is the only solution to put my R code into a package, and embed a small "stub" in the C++ code which calls my package?