<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>