On 12 September 2012 at 19:44, Umesh Chitre wrote: | I have created a custom package with following steps: | | 1. Created a new package using Rcpp.package.skeleton(<pkg name>, module=TRUE) | 2. Built using R CMD build
Please send __complete constructions__. It is not clear what you ran here but I believe you wanted R CMD INSTALL --build myPackageName_1.0.0.tar.gz or R CMD INSTALL --build . to create the .zip file. Else just use R CMD INSTALL . to install directly without a zipfile. I just did the last one on my machine win7 / 64 bit machine at work. [ Where for reasons I do not fully understand I had to add "-std=c++0x" for the 64 bit build CXXFLAGS but not the 32 bit build). ] | 3. Loaded the pkg through the zip file created by build process | | Now, when I try to invoke the rcpp_hello_world() method at R prompt, it throws an error. | | Can someone let me know how do I use the above or use "yada" module that is part of the Rcpp_module.cpp file? It works for me (TM). When 'R CMD check' is running on Rcpp (eg at CRAN) this is executed too and tends to work. So chances are your setup is not correct, or you didn't follow the instructions to the letter. R development using compiled source code is (in my mind) much more difficult on Windows as the setup is both very manual and finicky. If you can work on Linux, I recommend that you do. If you can't follow the instructions closely. Dirk | | Thanks. | | | | Disclaimer: The information in this e-mail is confidential and may be legally privileged. It is meant solely for intended recipients and access to the e-mail by anyone else is prohibited. If you are not an intended recipient and/or have received this email in error, please be advised that any disclosure, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. | _______________________________________________ | Rcpp-devel mailing list | Rcpp-devel@lists.r-forge.r-project.org | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel