[Rcpp-devel] [Rd] FW: Question on 5.6 Interfacing C++ code

Dirk Eddelbuettel edd at debian.org
Sun Apr 24 01:27:27 CEST 2011


On 23 April 2011 at 18:54, Sean Robert McGuffee wrote:
| Hi, sorry about the cross post thing--I just wanted to let both lists
| know that my problem was solved since both list originally found out
| about it.
| With regard to the Rcpp.package.skeleton(), it worked really well for
| me and easily to start a package.
| What I couldn't figure out was how to add to a package once I already
| started one.
| Say for example, if I add a new class with source.cpp and header.h
| file, what is the syntax to add them via Rcpp.package.skeleton()?

You just drop source.cpp and header.h into src/.  R then builds with them. 

Remember that R uses an implicitly Makefile collecting all sources in src/*
and producing src/$(PACKAGE).so

Dirk

-- 
Gauss has an Erdos number of -1.
   -- #63 at http://www.gaussfacts.com


More information about the Rcpp-devel mailing list