[Rcpp-devel] Modules + Attributes for extensions

2018-03-05 Thread fernandohtoledo
Dear All, I working in an R package where the main feature is some classes exposed through Modules. Besides, the classes constructors and methods, I am also exporting some functions that take classes instances plus other parameters to return new classes instances. So far, so good, everything is wo

Re: [Rcpp-devel] Modules + Attributes for extensions

2018-03-07 Thread fernandohtoledo
Dear Ralf and others, Thanks for your reply. I did looked for the references you pointed before. Unfortunately, there is nothing new in the Extending vignette than what can be found in Dirk's book chapter. Basically, all the others implement custom as/wrap for third part classes to SEXP fundamenta

Re: [Rcpp-devel] Modules + Attributes for extensions

2018-03-07 Thread fernandohtoledo
Dear Sergei, You got my question... however: I followed what is shown in RcppBDT as well as in Rcpp Extending Vignette i.e., include RcppCommon.h, define the class, include Rcpp.h. But, how the implement as/wrap?  I also turn available the extensions trough the "depends" attribute. It works and

Re: [Rcpp-devel] Modules + Attributes for extensions

2018-03-08 Thread fernandohtoledo
Dear All, So, after some more digging on the web and studying pointed packages and documents I did achieve my goal. For those who may have the same needs, I suggest you take a look on how RcppR6 deal and propose. Anyway, many thanks to Ralf and Sergei. Cheers, FH -Original Message- From: