[Rcpp-devel] Method with default params using RCPP_MODULE

Dirk Eddelbuettel edd at debian.org
Wed Oct 26 19:10:28 CEST 2016


On 26 October 2016 at 10:05, Hao Ye wrote:
|     In sum, the easiest may be to 'hide' the module and deal with this from the
|     R
|     side exposing both variants from there and then just calling the one you
|     have now.
| 
| 
| I agree - though I don't think you even need two variants of the C++ function
| if there's an R function to handle default arguments.

Good catch, and sloppy wording on my part.  This is what I meant.

Dirk

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


More information about the Rcpp-devel mailing list