Re: [Rcpp-devel] Applying R functions in a cpp method

2018-04-02 Thread Sergio Bra
Thank you very much!! I didn't find that part reviewing the documentation 2018-04-02 11:10 GMT+02:00 Iñaki Úcar : > 2018-04-02 11:03 GMT+02:00 Sergio Bra : > > Hi everybody, > > > > I want to define a cpp function which has as input an R function, which > is > > applied to some internal data of m

Re: [Rcpp-devel] Applying R functions in a cpp method

2018-04-02 Thread Iñaki Úcar
2018-04-02 11:03 GMT+02:00 Sergio Bra : > Hi everybody, > > I want to define a cpp function which has as input an R function, which is > applied to some internal data of my cpp code (st similar to the map function > of the purrr package). An example could be: > > my_rcpp_function("mean") > > Intern

[Rcpp-devel] Applying R functions in a cpp method

2018-04-02 Thread Sergio Bra
Hi everybody, I want to define a cpp function which has as input an R function, which is applied to some internal data of my cpp code (st similar to the map function of the purrr package). An example could be: my_rcpp_function("mean") Internally, I'd have a cpp function which applies that R func