r - Using Rcpp headers in C++ -
Trying to learn C ++, because I have seen the huge improvements you've been using using the C ++ code. <<>
Within R, I am trying to play with the RCPP library, and I have found examples to work in R. However, I would like to write some C ++ code in my C ++ Editor and get a better understanding of using the RCPP package) I tried to compile the following code in my C ++ editor (codeboxes): < / P>
include & lt; /path_to_r/R/win-library/2.15/Rcpp/include/Rcpp.h> But then it fails because it can not be found in the first few lines of the following:
% ... #ifndef Rcpp_hpp #define Rcpp_hpp / * It is important that it comes before / / # include & lt; RcppCommon.h & gt; ... Is there a better way to include all RCPP codes? Do I need to go through the RCPP file and replace all the files with my path?
I know this is a new question, and I'm sorry ... I'm sure the answer is somewhere in the document, but I do not know how to find it. Thanks for the help!
You can do this, and perhaps, look at the package that is embedded in C ++ - then C ++ is main () here and the makefile snippet will give you an idea. People have used Ricseed with different IDEs and Eclipse PP etc. Try them, and if you need more help then try the RCPP-Develop list because the author of those contributing files can not read the post here.
Comments
Post a Comment