[Rcpp-devel] Accessing an attribute object in C/C++
Dirk Eddelbuettel
edd at debian.org
Thu Jul 12 12:29:52 CEST 2012
David,
Are you aware that
1) Rcpp::List() builds compound objects, similar to list() in R
2) Rcpp object have
.attributeNames() to extract names of attributes
.hasAttribute(string) to test for given attribute
.attr(string) to extract given attribute
.attr(string) = val to assign
See the runit.RObject.R test file
Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list