Hello, I recently downloaded the Rcpp package and am having some trouble installing the libraries for my C++ code. Getting this package to work in R is fine, but there's no installation script to install the Rcpp.h library so that I can compile my C code. I'd appreciate if someone could let me know if there are any installation instructions for this. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20111127/220c2aaa/attachment.htm>
[Rcpp-devel] Installing the C Packages
3 messages · Maximilian Metti, Slava Razbash, Dirk Eddelbuettel
I suggest that you use the R function Rcpp.package.skeleton() to create a "skeleton package". Then compile a package with your C++/Rcpp code. Read this pdf: http://cran.r-project.org/web/packages/Rcpp/vignettes/Rcpp-package.pdf You could also read Dirk's answer to this question on stack overflow: http://stackoverflow.com/questions/7735451/how-do-i-compile-a-dll-with-r-and-rcpp Best Regards, Slava
On Mon, Nov 28, 2011 at 4:12 PM, Maximilian Metti <mmetti at math.ucsd.edu> wrote:
Hello, I recently downloaded the Rcpp package and am having some trouble installing the libraries for my C++ code. ?Getting this package to work in R is fine, but there's no installation script to install the Rcpp.h library so that I can compile my C code. ?I'd appreciate if someone could let me know if there are any installation instructions for this. Thanks!
_______________________________________________ Rcpp-devel mailing list Rcpp-devel at lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
Hi, and welcome!
On 27 November 2011 at 21:12, Maximilian Metti wrote:
| Hello, I recently downloaded the Rcpp package and am having some trouble | installing the libraries for my C++ code. ?Getting this package to work in R | is fine, Ok. So far. so good. | but there's no installation script to install the Rcpp.h library so | that I can compile my C code. ?I'd appreciate if someone could let me know if | there are any installation instructions for this. I am confused. And just maybe so are you? What exactly is it you are trying to do _with C_ using _Rcpp from the outside_ / Rcpp is an R package, which provides a richer C++ API on top of an underlying C API native to R. That's all. [ We have other things such as RInside which are related and which allow you to embed in C++ applications, but that is another story. We have no pure C libraries here. ] Dirk
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too dark to read." -- Groucho Marx