Skip to content
Back to formatted view

Raw Message

Message-ID: <19891.24671.573173.638111@max.nulle.part>
Date: 2011-04-23T23:27:27Z
From: Dirk Eddelbuettel
Subject: [Rcpp-devel] [Rd] FW: Question on 5.6 Interfacing C++ code
In-Reply-To: <BANLkTik5J+q5-FocDdOAdZEuBwdKfwsY+Q@mail.gmail.com>

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