[Rcpp-devel] Method with default params using RCPP_MODULE

Dirk Eddelbuettel edd at debian.org
Wed Oct 26 18:42:55 CEST 2016


On 26 October 2016 at 18:24, Sergio Bra wrote:
| I need to execute something like this in R:
| 
| R> res<-new(myClass)
| R>res$myMethod(1000)
| 
| So, when you say that I can manage it from the R side, are you talking about
| programming that behaviour in a *.R file? In case of an affirmative answer,
| same file where I have the loadModule sentence?

Yes. Anywhere in your package works.

I seem to set default values only with free functions.

So I fear you need to re-jig your code a little.  I coul of course be
overlooking something too...

Dirk

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


More information about the Rcpp-devel mailing list