<div dir="ltr">Thank you very much!! I didn't find that part reviewing the documentation</div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-02 11:10 GMT+02:00 Iñaki Úcar <span dir="ltr"><<a href="mailto:i.ucar86@gmail.com" target="_blank">i.ucar86@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">2018-04-02 11:03 GMT+02:00 Sergio Bra <<a href="mailto:sergio.bra88@gmail.com">sergio.bra88@gmail.com</a>>:<br>
> Hi everybody,<br>
><br>
> I want to define a cpp function which has as input an R function, which is<br>
> applied to some internal data of my cpp code (st similar to the map function<br>
> of the purrr package). An example could be:<br>
><br>
> my_rcpp_function("mean")<br>
><br>
> Internally, I'd have a cpp function which applies that R function to some<br>
> private data (not visible from the R-side).<br>
><br>
> My question is if Rcpp provides a way to execute an R function from cpp code<br>
> or if my issue is out of the scope of Rcpp and I'd limit to return the data<br>
> and apply the R function on the R-side.<br>
<br>
</span>See, e.g., <a href="http://gallery.rcpp.org/articles/r-function-from-c++/" rel="noreferrer" target="_blank">http://gallery.rcpp.org/<wbr>articles/r-function-from-c++/</a><br>
<br>
Iñaki<br>
<br>
><br>
> Thanks in advance.<br>
><br>
</blockquote></div><br></div>