Wolf Vollprecht
2017-06-12 08:11:32 UTC
I am trying to run C++ tests from C++ directly.
It looks like I need to start the R interpreter for memory management etc.
So far I have achieved moderate success through:
int Rf_initEmbeddedR(int argc, char **argv)
{
Rf_initialize_R(argc, argv);
setup_Rmainloop();
return 1;
}
However, the code crashes with
Error: function 'dataptr' not provided by package 'Rcpp'
Fatal error: unable to initialize the JIT
Is there a simpler way to initialize the R environment from C++ (through
Rcpp?). Or any other insights?
Best,
Wolf
It looks like I need to start the R interpreter for memory management etc.
So far I have achieved moderate success through:
int Rf_initEmbeddedR(int argc, char **argv)
{
Rf_initialize_R(argc, argv);
setup_Rmainloop();
return 1;
}
However, the code crashes with
Error: function 'dataptr' not provided by package 'Rcpp'
Fatal error: unable to initialize the JIT
Is there a simpler way to initialize the R environment from C++ (through
Rcpp?). Or any other insights?
Best,
Wolf