12#ifndef ROOT_R_TRInternalFunction
13#define ROOT_R_TRInternalFunction
33#if RCPP_VERSION >= Rcpp_Version(1,0,13)
34 template <
typename OUT,
typename... T>
37 set(Rcpp::XPtr< Rcpp::CppFunctionN<OUT, T...> >(
new Rcpp::CppFunctionN<OUT, T...>(fun),
false));
45 inline void set(SEXP xp) {
46 Rcpp::Environment RCPP = Rcpp::Environment::Rcpp_namespace() ;
47 Rcpp::Function intf = RCPP[
"internal_function"] ;
48 Storage::set__(intf(xp)) ;
static void update(gsl_integration_workspace *workspace, double a1, double b1, double area1, double error1, double a2, double b2, double area2, double error2)
TRInternalFunction_Impl(OUT(*fun)(void))
namespace associated R package for ROOT.
Rcpp::TRInternalFunction_Impl< Rcpp::PreserveStorage > TRInternalFunction
This is a class to support deprecated method to pass function to R's Environment, based in Rcpp::Inte...
RCPP_API_CLASS(TRInternalFunction_Impl)