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 8b5b623 commit 21400f2Copy full SHA for 21400f2
inst/include/Rcpp/Environment.h
@@ -374,7 +374,8 @@ namespace Rcpp{
374
try{
375
SEXP getNamespaceSym = Rf_install("getNamespace");
376
Shield<SEXP> package_str( Rf_mkString(package.c_str()) );
377
- env = Rcpp_fast_eval(Rf_lang2(getNamespaceSym, package_str), R_GlobalEnv);
+ Shield<SEXP> call( Rf_lang2(getNamespaceSym, package_str) );
378
+ env = Rcpp_fast_eval(call, R_GlobalEnv);
379
} catch( ... ){
380
throw no_such_namespace( package ) ;
381
}
0 commit comments