I am programming in c++ langage and I would like to call some R functions in my c++ code, is it possible ? How could I do that ? I don't undersand very well the chapter " The R api : entry points for C code" in "writing R extensions" Thank you for your help B BROCHE -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
B?reng?re BROCHE <berengere.broche at chu-rennes.fr> writes:> I am programming in c++ langage and I would like to call some R > functions in my c++ code, is it possible ? > How could I do that ? I don't undersand very well the chapter " The R > api : entry points for C code" in "writing R extensions"Well you would need to protect any include directives for R include files and any calls to C entry points in the R libraries with extern "C" { ... } There are examples of this in the file src/R_LapackPP.cc from the Matrix library but that is probably not the easiest code to understand if you are just starting with this. Perhaps if you gave us a more specific example of what you are trying to do we could be of more help. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._