<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>You might be looking for RInside.<br></div><div id="AppleMailSignature"><br></div><div><br>Le 12 juin 2017 à 10:11, Wolf Vollprecht <<a href="mailto:w.vollprecht@gmail.com">w.vollprecht@gmail.com</a>> a écrit :<br><br></div><blockquote type="cite"><div><div dir="ltr">I am trying to run C++ tests from C++ directly. <div>It looks like I need to start the R interpreter for memory management etc.</div><div><br></div><div>So far I have achieved moderate success through:</div><div><br></div><div><font face="monospace, monospace">int Rf_initEmbeddedR(int argc, char **argv)</font></div><div><font face="monospace, monospace">{</font></div><div><font face="monospace, monospace">    Rf_initialize_R(argc, argv);</font></div><div><font face="monospace, monospace">    setup_Rmainloop();</font></div><div><font face="monospace, monospace">    return 1;</font></div><div><font face="monospace, monospace">}</font></div><div><br></div><div><br></div><div>However, the code crashes with </div><div><br></div><div><div><font face="monospace, monospace">Error: function 'dataptr' not provided by package 'Rcpp'</font></div><div><font face="monospace, monospace">Fatal error: unable to initialize the JIT</font></div></div><div><br></div><div>Is there a simpler way to initialize the R environment from C++ (through Rcpp?). Or any other insights?<br></div><div><br></div><div>Best, </div><div><br></div><div>Wolf</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Rcpp-devel mailing list</span><br><span><a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a></span><br><span><a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a></span></div></blockquote></body></html>