[Rcpp-devel] Problem exposing constructor taking std::vector of user defined class to R using Rcpp-attributes and Rcpp-modules

Dirk Eddelbuettel edd at debian.org
Thu Aug 22 16:00:37 CEST 2013


On 22 August 2013 at 08:21, Romain Francois wrote:
| Then I can do this:
| 
| # Reference Class of B
| B_R <- setRefClass( "B_R",
|      fields = list(id="numeric")
| )
| b1 <- new( "B_R", id = 1 )
| b2 <- new( "B_R", id = 1 )
| a <- new( A, list(b1,b2) )

Beautiful. Thanks for putting that in.

Dirk

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


More information about the Rcpp-devel mailing list