search for: unwindprotect

Displaying 3 results from an estimated 3 matches for "unwindprotect".

2019 Jun 18
2
Fast way to call an R function from C++?
...pected? Why is calling an R function from C++ much slower than calling > > the function from R? Is there any faster way to do the function call in C++? > > Yes, there is: enable fast evaluation by setting > -DRCPP_USE_UNWIND_PROTECT, or alternatively, use > > // [[Rcpp::plugins(unwindProtect)]] > > I?aki -- I?aki ?car
2019 Jun 18
3
Fast way to call an R function from C++?
Hi, I'm looking for a most efficient way to call an R function from C++ in a package. I know there are two functions (`R_forceAndCall` and `Rf_eval`) that can do the "call" part, but both are slow compared to calling the same function in R. I also try to use Rcpp and it is the worse one. Here is my test code: C++ code: ``` // [[Rcpp::export]] SEXP C_test1(SEXP f, SEXP x) { SEXP
2019 Jun 19
0
Fast way to call an R function from C++?
...m C++ much slower than > calling > > > the function from R? Is there any faster way to do the function call > in C++? > > > > Yes, there is: enable fast evaluation by setting > > -DRCPP_USE_UNWIND_PROTECT, or alternatively, use > > > > // [[Rcpp::plugins(unwindProtect)]] > > > > I?aki > > > > -- > I?aki ?car > [[alternative HTML version deleted]]