<div dir="ltr">Hi everybody,<div><br></div><div>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:</div><div><br></div><div>my_rcpp_function("mean")</div><div><br></div><div>Internally, I'd have a cpp function which applies that R function to some private data (not visible from the R-side).</div><div><br></div><div>My question is if Rcpp provides a way to execute an R function from cpp code or if my issue is out of the scope of Rcpp and I'd limit to return the data and apply the R function on the R-side.</div><div><br></div><div>Thanks in advance.</div></div>