alex46015 at yahoo.com
2010-Mar-05 14:19 UTC
[R] for help on building a R package with several R function and a bunch of c, c++
Hope I can get quick help from here, I have a bunch of c, c++ included main function and makefile. It works well on both UNIX and windows. I tried to build R package which include this C++ program and several other R functions. R function here are independent c++ code. I prefer to define one R function to call this c++ program. Do you know any easy way to do it? I am reading manual "Writing R Extensions", I didn't catch the key point. I know how to build R package with just R function, If I put all c++ code and makefile in /src...what I need do? Thank you in advance! Alex
Whit Armstrong
2010-Mar-05 15:33 UTC
[R] for help on building a R package with several R function and a bunch of c, c++
Pick up Rcpp, make your life easier. http://dirk.eddelbuettel.com/code/rcpp.html -Whit On Fri, Mar 5, 2010 at 9:19 AM, <alex46015 at yahoo.com> wrote:> Hope I can get quick help from here, I have a bunch of c, c++ included main function and makefile. It works well on both UNIX and windows. I tried to build R package which include this C++ program and several other R functions. ?R function here are independent ?c++ code. I prefer to define one R function to call this c++ program. > > Do you know any easy way to do it? I am reading manual "Writing R Extensions", I didn't catch the key point. I know how to build R package with just R function, ?If I put all c++ code and makefile in /src...what I need do? > > Thank you in advance! > > Alex > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >