[Rd] for help on building a R package with several R function and a bunch of c, c++

2010-03-08 Thread alex46015
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. These R functions here are independent of c++ code. I prefer to

Re: [Rd] for help on building a R package with several R function and a bunch of c, c++

2010-03-08 Thread alex46015
Yes! that is what I am looking for. When I post my question, I said I cannot catch the key point in Writing R Extensions. Follow your suggestion, I almost have reached my goal although I passed the R CMD check mypackage. Before I install it (I need ask UNIX adminstrator to do it), I check

Re: [Rd] for help on building a R package with several R function and a bunch of c, c++

2010-03-08 Thread alex46015
I fixed the problem, it is related to my C++ code when I change main function to gneral function. You gave a great help! Thank you! Simon. have a good night! Alex __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] for help on building a R package with several R function and a bunch of c, c++

2010-03-07 Thread alex46015
Thank you for your help. So far what I did  on my notebook as follows. My OS is windows7.   I downloaded Rcpp windows version, and load library(Rcpp) then.   1, Change main funnction to f1.cpp, remove makefile. 2 ,run Rcpp.package.skeleton(name=test,list=c(rec1.R,rect2.R)) 3, edit  /man, /R,

[Rd] for help on building a R package with several R function and a bunch of c, c++

2010-03-05 Thread alex46015
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. These R function here are independent of c++ code. I prefer to

Re: [Rd] for help on building a R package with several R function and a bunch of c, c++

2010-03-05 Thread alex46015
I think the first question should be how to build a R function to call a bunch of C ,C++ which include one main program, and a makefile. My goal to build a R package will be next step.   I read Rcpp , I am not sure if  RcppResultSet can solve my problem or other function. Once I make sure it