We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21400f2 commit 97f9a81Copy full SHA for 97f9a81
inst/include/Rcpp/r_cast.h
@@ -31,7 +31,8 @@ namespace Rcpp {
31
Armor<SEXP> res;
32
try{
33
SEXP funSym = Rf_install(fun);
34
- res = Rcpp_fast_eval(Rf_lang2(funSym, x), R_GlobalEnv);
+ Shield<SEXP> call(Rf_lang2(funSym, x));
35
+ res = Rcpp_fast_eval(call, R_GlobalEnv);
36
} catch( eval_error& e) {
37
const char* fmt = "Could not convert using R function: %s.";
38
throw not_compatible(fmt, fun);
0 commit comments