[Rcpp-devel] Simplest Class Example For Starters

Dirk Eddelbuettel edd at debian.org
Thu May 30 19:02:43 CEST 2013


Ivo,

Appreciate that you post here.  Am a little pressed for time but in a
nutshell, you missed that the new (and very nice) Rcpp Attributes which you
use for sourceCpp do NOT currently mix with Rcpp Modules.

So either concentrate on easily writing accessor function, OR concentrate on
using Modules (which is not th easiest topic to start with). You cannot mix
and match.

As for simplest examples: they are eg in the package itself, look at 

   /usr/local/lib/R/site-library/Rcpp/unitTests/testRcppModule/

which provides a small but complete working package using modules.

Hope this helps,  Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list